private int GetNextMask() { if (_useZeroMask) { return 0; } // Get 32-bits of randomness and convert it to an int var buffer = new byte[sizeof(int)]; Rng.GetBytes(buffer); return BitConverter.ToInt32(buffer, 0); }