Out with MagicOnion, in with LiteNetLib
Removed MagicOnion Added LiteNetLib Created client and server abstractions Fixed serialization bugs
This commit is contained in:
parent
433a7b4ae4
commit
e96146b7bb
869 changed files with 59401 additions and 16812 deletions
|
|
@ -0,0 +1,20 @@
|
|||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue