Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
RNGCryptoServiceProvider.cs
Go to the documentation of this file.
2
4
5[Obsolete("RNGCryptoServiceProvider is obsolete. To generate a random number, use one of the RandomNumberGenerator static methods instead.", DiagnosticId = "SYSLIB0023", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
6[EditorBrowsable(EditorBrowsableState.Never)]
8{
9 private readonly RandomNumberGenerator _impl;
10
12 : this((CspParameters?)null)
13 {
14 }
15
17 : this((CspParameters?)null)
18 {
19 }
20
21 public RNGCryptoServiceProvider(byte[] rgb)
22 : this((CspParameters?)null)
23 {
24 }
25
27 {
28 if (cspParams != null)
29 {
31 }
33 }
34
35 public override void GetBytes(byte[] data)
36 {
37 _impl.GetBytes(data);
38 }
39
40 public override void GetBytes(byte[] data, int offset, int count)
41 {
42 _impl.GetBytes(data, offset, count);
43 }
44
45 public override void GetBytes(Span<byte> data)
46 {
47 _impl.GetBytes(data);
48 }
49
50 public override void GetNonZeroBytes(byte[] data)
51 {
53 }
54
55 public override void GetNonZeroBytes(Span<byte> data)
56 {
58 }
59
60 protected override void Dispose(bool disposing)
61 {
62 if (disposing)
63 {
64 _impl.Dispose();
65 base.Dispose(disposing);
66 }
67 }
68}
override void GetBytes(byte[] data, int offset, int count)