cryptocoding
cryptocoding copied to clipboard
Bad solution for "use strong randomness"
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.