예제 #1
0
파일: User.cs 프로젝트: zi-yu/orionsbelt
        public static string GeneratePassword()
        {
            string newPassword = string.Empty;

            for (int i = 0; i < 8; ++i)
            {
                newPassword += (char)OrionGlobals.GenerateRandInt(97, 122);
            }
            return(newPassword);
        }
예제 #2
0
 private void storeSkinNumber(int n)
 {
     HttpContext.Current.Items["SkinNumber"] = OrionGlobals.GenerateRandInt(1, n);
 }