Nonce generation changes.

Nonces don't need to be random, only different.

also random_int now gives same quality random numbers for both NaCl and
libsodium.