3 ms·
Careful, shuf is not cryptographically safe by default! You need to pass --random-source=/dev/urandom to get a proper RNG. https://www.gnu.org/software/coreuti
by icebraining 9y ago
Careful, shuf is not cryptographically safe by default! You need to pass --random-source=/dev/urandom to get a proper RNG.
https://www.gnu.org/software/coreutils/manual/html_node/Random-sources.html https://www.gnu.org/software/coreutils/manual/html_node/Rand...
- shpx 9y agoWhy does shuf implement its own random number generator? Why isn't /dev/urandom the default? https://sockpuppet.org/blog/2014/02/25/safely-generate-random-numbers/ https://sockpuppet.org/blog/2014/02/25/safely-generate-rando...
- icebraining 9y agoshuf is not a crypto tool, and the GNU coreutils are written to be cross-platform, even where /dev/urandom doesn't exist, or is unreliable. That's my guess, at least.