MCPcopy Create free account
hub / github.com/AngusJohnson/Clipper2 / GenerateGlobalSeed

Method GenerateGlobalSeed

CSharp/Clipper2Lib/HashCode.cs:63–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61 private const uint Prime5 = 374761393U;
62
63 private static uint GenerateGlobalSeed()
64 {
65 using RandomNumberGenerator randomNumberGenerator = RandomNumberGenerator.Create();
66 byte[] data = new byte[sizeof(uint)];
67 randomNumberGenerator.GetBytes(data);
68 return BitConverter.ToUInt32(data, 0);
69 }
70
71 public static int Combine<T1, T2>(T1 value1, T2 value2)
72 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected