Logo
Explore Help
Sign In
bslathi19/cc65
1
0
Fork 0
You've already forked cc65
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
984f901604d638e63fe17292e3e9f2410abac7a0
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
Powered by Gitea Version: 1.25.1 Page: 143ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API