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

◆ GetBytes() [1/5]

static unsafe void System.Security.Cryptography.RandomNumberGeneratorImplementation.GetBytes ( byte * pbBuffer,
int count )
inlinestaticprivate

Definition at line 82 of file RandomNumberGeneratorImplementation.cs.

83 {
84 global::Interop.BCrypt.NTSTATUS nTSTATUS = global::Interop.BCrypt.BCryptGenRandom(IntPtr.Zero, pbBuffer, count, 2);
85 if (nTSTATUS != 0)
86 {
87 throw global::Interop.BCrypt.CreateCryptographicException(nTSTATUS);
88 }
89 }

References System.count, and System.IntPtr.Zero.