public void NextBytesSpan()
        {
            Span <byte> buffer = stackalloc byte[20];

            using RngRandomGenerator generator = new RngRandomGenerator();
            generator.NextBytes(buffer);
        }
 public void NextBytesWithLenght()
 {
     byte[] buffer = new byte[45];
     using RngRandomGenerator generator = new RngRandomGenerator();
     generator.NextBytes(buffer, 1, 20);
 }
 public void NextBytes()
 {
     byte[] buffer = new byte[45];
     using RngRandomGenerator generator = new RngRandomGenerator();
     generator.NextBytes(buffer);
 }