Skip to content
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

Optimize 64 bit random number generation #2224

Merged
merged 1 commit into from Jun 30, 2022
Merged

Commits on Jun 29, 2022

  1. Optimize 64 bit random number generation

    rand64bit called random 4 times to generate one 64 bit number. There is
    no reason to do this - random() is basically guaranteed to return a 32
    bit number.
    
    This also adds a static check to make sure that it does.
    0xxon committed Jun 29, 2022
    Configuration menu
    Copy the full SHA
    31cf270 View commit details
    Browse the repository at this point in the history