Beispiel #1
0
        public static byte[] ByteArray(this RandomService service, int length)
        {
            var result = new List <byte>();

            for (var i = 0; i < length; i++)
            {
                result.Add(service.Byte());
            }

            return(result.ToArray());
        }
Beispiel #2
0
 public static byte Byte(this RandomService service)
 {
     return(service.Byte(byte.MaxValue));
 }