4 ms·
That is truly a horrible seed. Use /dev/random
by sgk284 11y ago
That is truly a horrible seed. Use /dev/random
- justintocci 11y agoI just made it so that it uses the first 4 bytes it gets from /dev/random, if it can't open /dev/random, it falls back to what we had before. --nunzio
- alcari 11y agoDon't fall back. If you don't have a reasonable enough environment to get a PRNG, you should halt and complain very loudly. As for actually generating random numbers, here's a good explanation from 'tptacek: http://sockpuppet.org/blog/2014/02/25/safely-generate-random-numbers/ http://sockpuppet.org/blog/2014/02/25/safely-generate-random...
- deleted 11y ago[deleted]
- justintocci 11y agoI have finished the error message and pushed to Github. Thank you for your input. I will look at the link you have referenced soon. --nunzio
- pmontra 11y agoUse /dev/urandom instead of /dev/random See http://www.2uo.de/myths-about-urandom/ http://www.2uo.de/myths-about-urandom/ for the reasons