Use crypto/rand for random numbers.

Remove warning about bad randomness, etc.