public static int NextInt() { Random inst = _local; if (inst == null) { byte[] buffer = new byte[8]; Global.GetBytes(buffer); _local = inst = new Random(BitConverter.ToInt32(buffer, 0)); } return _local.Next(); }