Use new Random module

Replace OpenSSL.rand with randbytes