Extend CryptoRngProvider api

This commit is contained in:
Alexandru Macocian
2021-07-15 16:32:40 +03:00
parent a2d23ed716
commit ce3cac9fa2
4 changed files with 31 additions and 1 deletions
@@ -25,6 +25,18 @@ namespace System.Rng
{
this.rngProvider.GetNonZeroBytes(data);
}
public byte[] GetBytes(int byteCount)
{
var bytes = new byte[byteCount];
this.GetBytes(bytes);
return bytes;
}
public byte[] GetNonZeroBytes(int byteCount)
{
var bytes = new byte[byteCount];
this.GetNonZeroBytes(bytes);
return bytes;
}
private void Dispose(bool disposing)
{