3 ms·
> You can generate 16 random bytes without a library, by using fopen() and fread(). Yeah but then good luck getting the right /dev/random vs /dev/urandom on th
by GFK_of_xmaspast 11y ago
> You can generate 16 random bytes without a library, by using fopen() and fread().
Yeah but then good luck getting the right /dev/random vs /dev/urandom on the right platform, and also good luck getting it to work on windows and ios.
- TazeTSchnitzel 11y agoTrue, it has its caveats.
- dalke 11y agoAnd good luck if you are in a chroot'ed jail, or out of file handles. (Hence why OpenBSD added arc4random(), now based on ChaCha20.)