jedisct1 / libsodium-doc

Gitbook documentation for libsodium
https://libsodium.org
ISC License
166 stars 159 forks source link

Generating random data: Document use of getrandom(2) on FreeBSD #99

Closed cemeyer closed 4 years ago

cemeyer commented 4 years ago

Libsodium uses getrandom(2) on recent (2018/12 and newer) versions of FreeBSD, as well as recent versions of Linux. So amend the text, which previously incorrectly suggested /dev/urandom was used on FreeBSD.

https://github.com/jedisct1/libsodium/blob/master/src/libsodium/randombytes/internal/randombytes_internal_random.c#L35-L38

jedisct1 commented 4 years ago

Thanks,