Use new Random module

Replace OpenSSL.rand with Random.randbytes