2012年3月30日
摘要: static int GetRandomSeed() { byte[] bytes = new byte[4]; System.Security.Cryptography.RNGCryptoServiceProvider rng = new System.Security.Cryptography.RNGCryptoServiceProvider(); rng.GetBytes(bytes); return BitConverter.ToInt32(bytes, 0); } 阅读全文
posted @ 2012-03-30 10:37 上校 阅读(328) 评论(0) 推荐(0)