OSDP.Net 5.3.0-beta.3
A .NET library for implementing the Open Supervised Device Protocol (OSDP)
Loading...
Searching...
No Matches
SecureRandomNumber.cs
1using Org.BouncyCastle.Security;
2
4
10internal static class SecureRandomNumber
11{
12 // SecureRandom is thread-safe, so a single instance is shared
13 private static readonly SecureRandom Generator = new();
14
19 internal static void Fill(byte[] buffer) => Generator.NextBytes(buffer);
20}