Fix unsecure random number generation, use /dev/random to feed the srand.