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
biased random integers #6
Comments
It should be uniform. See: https://stackoverflow.com/a/1527820/64949 |
That SO answer has the following comment:
So I think it won't be uniform; I'm not sure that's an issue or not. For most purposes it seems like the small bias is acceptable but more sensitive cases (cryptographic, etc.) it would not be. I wonder if it would be worthwhile to use an implementation similar to the one from Aaron Toponce or to mention in the readme about this. Thoughts? Thanks! |
Biased or not, the use of So yes, a warning should be added to the README stating that this module should not be used for any sort of cryptographic purpose. Probably the same applies to the 'related modules' listed in the README. |
I can't tell but I believe this applies. Won't
random-int
provide biased numbers?Refs:
The text was updated successfully, but these errors were encountered: