Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ GetBytes() [5/5]

unsafe override void System.Security.Cryptography.RandomNumberGeneratorImplementation.GetBytes ( Span< byte > data)
inlinevirtual

Reimplemented from System.Security.Cryptography.RandomNumberGenerator.

Definition at line 37 of file RandomNumberGeneratorImplementation.cs.

38 {
39 if (data.Length > 0)
40 {
41 fixed (byte* pbBuffer = data)
42 {
43 GetBytes(pbBuffer, data.Length);
44 }
45 }
46 }
int Length
Definition Span.cs:70

References System.Security.Cryptography.RandomNumberGeneratorImplementation.GetBytes(), and System.Span< T >.Length.