I 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
As for actually generating random numbers, here's a good explanation from 'tptacek: http://sockpuppet.org/blog/2014/02/25/safely-generate-random...