public Random(int Seed) { this.Seed = Seed; byte[] bytes = BitConverter.GetBytes(Seed); byte[] seed = new byte[48]; int index = 0; for (int i = 0; i < 12; ++i) { seed[index++] = bytes[0]; seed[index++] = bytes[1]; seed[index++] = bytes[2]; seed[index++] = bytes[3]; } randomGenerator = new CSPRNG(seed); }
public Random() { randomGenerator = new CSPRNG(); }