14 lines
303 B
C#
14 lines
303 B
C#
using System.Security.Cryptography;
|
|
|
|
namespace SecureCore.Authentication
|
|
{
|
|
public static class ByteGenerator
|
|
{
|
|
public static void GetRandomBytes(ref byte[] bytes)
|
|
{
|
|
using var rng = RandomNumberGenerator.Create();
|
|
rng.GetBytes(bytes);
|
|
}
|
|
}
|
|
}
|