Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetBytes() [3/4]

static byte[] System.Security.Cryptography.RandomNumberGenerator.GetBytes ( int count)
inlinestaticinherited

Definition at line 127 of file RandomNumberGenerator.cs.

128 {
129 if (count < 0)
130 {
131 throw new ArgumentOutOfRangeException("count", System.SR.ArgumentOutOfRange_NeedNonNegNum);
132 }
133 byte[] array = new byte[count];
134 RandomNumberGeneratorImplementation.FillSpan(array);
135 return array;
136 }
static string ArgumentOutOfRange_NeedNonNegNum
Definition SR.cs:32
Definition SR.cs:7

References System.SR.ArgumentOutOfRange_NeedNonNegNum, System.array, System.count, and System.Security.Cryptography.RandomNumberGeneratorImplementation.FillSpan().