Skip to content

Conversation

@boriel
Copy link
Collaborator

@boriel boriel commented Mar 22, 2025

What / Why

Adds random.bas library with 3 useful random int generators (for performance).

Also the RND runtime asm has been improved: no need to call it 4 times, as randomness seems good enough
with just 1 call.

boriel added 2 commits March 16, 2025 23:55
Instead of geting every byte from the lower byte of
each 32 bit numbers (which require 4 loops), use just
the 32 bit directly. Note this might reduce randomness
and might be crypthograpycally less secure... (which for
the Z80 is of little importance... I guess).
@boriel boriel force-pushed the feature/add_random_library branch from 6ee065f to 66d6100 Compare March 22, 2025 18:44
@boriel boriel merged commit 2e885fa into main Mar 22, 2025
1 check passed
@boriel boriel deleted the feature/add_random_library branch March 22, 2025 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants