public static void FillRandomBytes(Span <byte> buffer, int length) { Random.NextBytes(buffer, length, RandomSource.SodiumCore); }
public static byte[] GetRandomBytes(int length) { return(Random.NextBytes(length, RandomSource.SodiumCore)); }