C# 随机串的生成

       /**
        * 生成随机串,随机串包含字母或数字
        * @return 随机串
        */
        public static string GenerateNonceStr()
        {
            return Guid.NewGuid().ToString().Replace("-", "");
        }

 

posted on 2016-09-18 14:00  shaozhuyong  阅读(852)  评论(0编辑  收藏  举报