cryptocoding icon indicating copy to clipboard operation
cryptocoding copied to clipboard

Bad solution for "use strong randomness"

Open Sc00bz opened this issue 5 years ago • 0 comments

LibreSSL's getentropy_urandom() calls gotdata() which checks if the data is not all zeros. If you are calling this for short random integers, then all zeros is a very possible random value.

Sc00bz avatar May 28 '19 16:05 Sc00bz