Aetheria/Assets/Scripts/ServerShared/NIH/RethinkDb.Driver/Net/SecureRandom.cs
hyperion51 e96146b7bb Out with MagicOnion, in with LiteNetLib
Removed MagicOnion
Added LiteNetLib
Created client and server abstractions
Fixed serialization bugs
2020-03-24 14:36:22 +00:00

20 lines
No EOL
404 B
C#

using System;
using System.Security.Cryptography;
namespace RethinkDb.Driver.Net
{
internal class SecureRandom : IDisposable
{
private RandomNumberGenerator random = RandomNumberGenerator.Create();
public void GetBytes(byte[] data)
{
random.GetBytes(data);
}
public void Dispose()
{
random.Dispose();
}
}
}