terraria-cpp2il v1.4.4.9
Terraria mobile dump, with CallAnalysis (see source code). Dump with reconstucted method: https://infinitynichto.github.io/terraria-cpp2il-methodrecon
Loading...
Searching...
No Matches
Random.cs
Go to the documentation of this file.
1using System;
2using System.IO;
7
8namespace System
9{
10 [global::Cpp2ILInjected.Token(Token = "0x20000F0")]
11 public class Random
12 {
13 [global::Cpp2ILInjected.Token(Token = "0x60008E5")]
14 [global::Cpp2ILInjected.Address(RVA = "0x1C45318", Offset = "0x1C45318", Length = "0x5C")]
15 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Numerics.Hashing.HashHelpers), Member = ".cctor", ReturnType = typeof(void))]
16 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "Ionic.Zip.SharedUtilities", Member = "GenerateRandomStringImpl", MemberParameters = new object[]
17 {
18 typeof(int),
19 typeof(int)
20 }, ReturnType = typeof(string))]
21 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "Ionic.Zip.ZipEntry", Member = "WriteSecurityMetadata", MemberParameters = new object[] { typeof(global::System.IO.Stream) }, ReturnType = typeof(void))]
22 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 3)]
23 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Random), Member = "GenerateSeed", ReturnType = typeof(int))]
24 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Random), Member = ".ctor", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
25 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
26 public Random()
27 {
28 throw null;
29 }
30
31 [global::Cpp2ILInjected.Token(Token = "0x60008E6")]
32 [global::Cpp2ILInjected.Address(RVA = "0x1C45520", Offset = "0x1C45520", Length = "0x170")]
33 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
34 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Random), Member = ".ctor", ReturnType = typeof(void))]
35 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Random), Member = "GenerateSeed", ReturnType = typeof(int))]
36 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Random), Member = ".cctor", ReturnType = typeof(void))]
37 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Threading.ThreadPoolWorkQueueThreadLocals), Member = ".ctor", MemberParameters = new object[] { typeof(global::System.Threading.ThreadPoolWorkQueue) }, ReturnType = typeof(void))]
38 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 4)]
39 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
40 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
41 public Random(int Seed)
42 {
43 throw null;
44 }
45
46 [global::Cpp2ILInjected.Token(Token = "0x60008E7")]
47 [global::Cpp2ILInjected.Address(RVA = "0x1C45690", Offset = "0x1C45690", Length = "0x20")]
48 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
49 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
50 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Random), Member = "InternalSample", ReturnType = typeof(int))]
51 protected virtual double Sample()
52 {
53 throw null;
54 }
55
56 [global::Cpp2ILInjected.Token(Token = "0x60008E8")]
57 [global::Cpp2ILInjected.Address(RVA = "0x1C456B0", Offset = "0x1C456B0", Length = "0x68")]
58 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
59 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Random), Member = "Sample", ReturnType = typeof(double))]
60 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Random), Member = "Next", ReturnType = typeof(int))]
61 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Random), Member = "GetSampleForLargeRange", ReturnType = typeof(double))]
62 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Random), Member = "NextBytes", MemberParameters = new object[] { typeof(byte[]) }, ReturnType = typeof(void))]
63 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 5)]
64 private int InternalSample()
65 {
66 throw null;
67 }
68
69 [global::Cpp2ILInjected.Token(Token = "0x60008E9")]
70 [global::Cpp2ILInjected.Address(RVA = "0x1C45374", Offset = "0x1C45374", Length = "0x1AC")]
71 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
72 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Random), Member = ".ctor", ReturnType = typeof(void))]
73 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
74 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Threading.Monitor), Member = "Enter", MemberParameters = new object[]
75 {
76 typeof(object),
77 typeof(ref bool)
78 }, ReturnType = typeof(void))]
79 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Threading.Monitor), Member = "Exit", MemberParameters = new object[] { typeof(object) }, ReturnType = typeof(void))]
80 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Random), Member = ".ctor", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
81 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 15)]
82 private static int GenerateSeed()
83 {
84 throw null;
85 }
86
87 [global::Cpp2ILInjected.Token(Token = "0x60008EA")]
88 [global::Cpp2ILInjected.Address(RVA = "0x1C45718", Offset = "0x1C45718", Length = "0x24")]
89 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
90 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::Interop), Member = "GetRandomBytes", MemberParameters = new object[]
91 {
92 typeof(byte*),
93 typeof(int)
94 }, ReturnType = typeof(void))]
95 private unsafe static int GenerateGlobalSeed()
96 {
97 throw null;
98 }
99
100 [global::Cpp2ILInjected.Token(Token = "0x60008EB")]
101 [global::Cpp2ILInjected.Address(RVA = "0x1C4573C", Offset = "0x1C4573C", Length = "0x4")]
102 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
103 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Random), Member = "InternalSample", ReturnType = typeof(int))]
104 public virtual int Next()
105 {
106 throw null;
107 }
108
109 [global::Cpp2ILInjected.Token(Token = "0x60008EC")]
110 [global::Cpp2ILInjected.Address(RVA = "0x1C45740", Offset = "0x1C45740", Length = "0x4C")]
111 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
112 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(global::System.Random), Member = "Next", MemberParameters = new object[]
113 {
114 typeof(int),
115 typeof(int)
116 }, ReturnType = typeof(int))]
117 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
118 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Random), Member = "InternalSample", ReturnType = typeof(int))]
119 private double GetSampleForLargeRange()
120 {
121 throw null;
122 }
123
124 [global::Cpp2ILInjected.Token(Token = "0x60008ED")]
125 [global::Cpp2ILInjected.Address(RVA = "0x1C4578C", Offset = "0x1C4578C", Length = "0x118")]
126 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
127 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
128 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Random), Member = "GetSampleForLargeRange", ReturnType = typeof(double))]
129 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::SR), Member = "Format", MemberParameters = new object[]
130 {
131 typeof(string),
132 typeof(object),
133 typeof(object)
134 }, ReturnType = typeof(string))]
135 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.ArgumentOutOfRangeException), Member = ".ctor", MemberParameters = new object[]
136 {
137 typeof(string),
138 typeof(string)
139 }, ReturnType = typeof(void))]
140 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 8)]
141 public virtual int Next(int minValue, int maxValue)
142 {
143 throw null;
144 }
145
146 [global::Cpp2ILInjected.Token(Token = "0x60008EE")]
147 [global::Cpp2ILInjected.Address(RVA = "0x1C458A4", Offset = "0x1C458A4", Length = "0xC4")]
148 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
149 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
150 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::SR), Member = "Format", MemberParameters = new object[]
151 {
152 typeof(string),
153 typeof(object)
154 }, ReturnType = typeof(string))]
155 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.ArgumentOutOfRangeException), Member = ".ctor", MemberParameters = new object[]
156 {
157 typeof(string),
158 typeof(string)
159 }, ReturnType = typeof(void))]
160 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 7)]
161 public virtual int Next(int maxValue)
162 {
163 throw null;
164 }
165
166 [global::Cpp2ILInjected.Token(Token = "0x60008EF")]
167 [global::Cpp2ILInjected.Address(RVA = "0x1C45968", Offset = "0x1C45968", Length = "0xA0")]
168 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
169 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
170 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Random), Member = "InternalSample", ReturnType = typeof(int))]
171 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.ArgumentNullException), Member = ".ctor", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
172 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 5)]
173 public virtual void NextBytes(byte[] buffer)
174 {
175 throw null;
176 }
177
178 // Note: this type is marked as 'beforefieldinit'.
179 [global::Cpp2ILInjected.Token(Token = "0x60008F0")]
180 [global::Cpp2ILInjected.Address(RVA = "0x1C45A08", Offset = "0x1C45A08", Length = "0x7C")]
181 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
182 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::Interop), Member = "GetRandomBytes", MemberParameters = new object[]
183 {
184 typeof(byte*),
185 typeof(int)
186 }, ReturnType = typeof(void))]
187 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(global::System.Random), Member = ".ctor", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
188 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
189 static unsafe Random()
190 {
191 throw null;
192 }
193
194 [global::Cpp2ILInjected.Token(Token = "0x4000389")]
195 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
196 private int _inext;
197
198 [global::Cpp2ILInjected.Token(Token = "0x400038A")]
199 [global::Cpp2ILInjected.FieldOffset(Offset = "0x14")]
200 private int _inextp;
201
202 [global::Cpp2ILInjected.Token(Token = "0x400038B")]
203 [global::Cpp2ILInjected.FieldOffset(Offset = "0x18")]
204 private int[] _seedArray;
205
206 [global::System.ThreadStatic]
207 [global::Cpp2ILInjected.Token(Token = "0x400038C")]
208 private static global::System.Random t_threadRandom;
209
210 [global::Cpp2ILInjected.Token(Token = "0x400038D")]
211 private static readonly global::System.Random s_globalRandom;
212 }
213}
class f__AnonymousType0<< Count > j__TPar
virtual double Sample()
Definition Random.cs:51
static global::System.Random t_threadRandom
Definition Random.cs:208
int InternalSample()
Definition Random.cs:64
static readonly global::System.Random s_globalRandom
Definition Random.cs:211
virtual int Next()
Definition Random.cs:104
virtual void NextBytes(byte[] buffer)
Definition Random.cs:173
static unsafe int GenerateGlobalSeed()
Definition Random.cs:95
int[] _seedArray
Definition Random.cs:204
Random(int Seed)
Definition Random.cs:41
double GetSampleForLargeRange()
Definition Random.cs:119
virtual int Next(int minValue, int maxValue)
Definition Random.cs:141
static int GenerateSeed()
Definition Random.cs:82
virtual int Next(int maxValue)
Definition Random.cs:161
static unsafe Random()
Definition Random.cs:189