Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on 7-zip broken password random number generator. Parent comment
https://github.com/jedisct1/libsodium/blob/master/src/libsod...
They sum it up in their docs like this:
- On Windows systems, the RtlGenRandom() function is used
- On OpenBSD and Bitrig, the arc4random() function is used
- On recent Linux kernels, the getrandom system call is used
- On other Unices, the /dev/urandom device is used
# if defined(__FreeBSD_version) && __FreeBSD_version >= 1200000 # include <sys/random.h> # define HAVE_LINUX_COMPATIBLE_GETRANDOM
https://github.com/jedisct1/libsodium/blob/master/src/libsod...
They sum it up in their docs like this:
- On Windows systems, the RtlGenRandom() function is used
- On OpenBSD and Bitrig, the arc4random() function is used
- On recent Linux kernels, the getrandom system call is used
- On other Unices, the /dev/urandom device is used