This website requires JavaScript.
Explore
Help
Sign In
bslathi19
/
cc65
Watch
1
Star
0
Fork
0
You've already forked cc65
Code
Issues
Pull Requests
Actions
1
Packages
Projects
Releases
Wiki
Activity
Files
819ecbda266bf84dddb5e00a79e39c7fc980bacc
cc65
/
libsrc
/
common
/
rand.s
Brad Smith
32d000fb4c
Fix broken rand() implementation. The high 8 bits were unused, reducing it to a 24-bit implementation (while still doing all the work for a 32-bit one). The best entropy is in the unused high byte, returning these bits in A instead of bits 8-15, which had considerably lower entropy (i.e. rand() & 255 was effectively a 16-bit LCG).
2016-07-11 20:48:47 -04:00
1.5 KiB
Raw
Blame
History
View Raw
Reference in New Issue
View Git Blame
Copy Permalink