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

◆ FillRandomAsciiString() [2/2]

static void System.Security.Cryptography.CngPkcs8.FillRandomAsciiString ( Span< char > destination)
inlinestaticprivate

Definition at line 313 of file CngPkcs8.cs.

314 {
315 Span<byte> data = stackalloc byte[destination.Length];
316 RandomNumberGenerator.Fill(data);
317 for (int i = 0; i < data.Length; i++)
318 {
319 destination[i] = (char)(33 + (data[i] & 0x3F));
320 }
321 }

References System.destination, System.Security.Cryptography.RandomNumberGenerator.Fill(), and System.Span< T >.Length.