Skip to content

Feature/add random library #968

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 22, 2025
Merged

Feature/add random library #968

merged 3 commits into from
Mar 22, 2025

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.

1 participant