[openssl-users] conversion of RAND_bytes to rand in fips apporved way

Salz, Rich rsalz at akamai.com
Wed Jul 25 18:20:57 UTC 2018

If RAND_MAX is a power of 2, then just ask RAND_bytes for the right number of bytes (four for 32768) and use bit-shifting to pack the value.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mta.openssl.org/pipermail/openssl-users/attachments/20180725/4bdd4920/attachment.html>

More information about the openssl-users mailing list