MCPcopy Create free account
hub / github.com/AlSch092/UltimateAntiCheat / GenerateRandomString

Method GenerateRandomString

Server/Utilities.cs:11–21  ·  view source on GitHub ↗
(int length)

Source from the content-addressed store, hash-verified

9 private const string chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*()";
10
11 public static string GenerateRandomString(int length)
12 {
13 var stringChars = new char[length];
14
15 for (int i = 0; i < length; i++)
16 {
17 stringChars[i] = chars[random.Next(chars.Length)];
18 }
19
20 return new string(stringChars);
21 }
22 }
23}

Callers 1

SendHeartbeatMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected