From e8c0182d883ffed5a71df9d8f8276bc85f50727c Mon Sep 17 00:00:00 2001 From: Jeremy Katz Date: Mon, 8 Nov 2004 22:34:26 +0000 Subject: 2004-11-08 Jeremy Katz * users.py: whrandom is deprecated, use random instead --- users.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'users.py') diff --git a/users.py b/users.py index 11ad49933..05d5a406c 100644 --- a/users.py +++ b/users.py @@ -15,7 +15,7 @@ # import iutil -import whrandom +import random import crypt import os import string @@ -79,10 +79,10 @@ class Password: self.crypt = password self.pure = None else: - salt = (whrandom.choice (string.letters + - string.digits + './') + - whrandom.choice (string.letters + - string.digits + './')) + salt = (random.choice (string.letters + + string.digits + './') + + random.choice (string.letters + + string.digits + './')) self.crypt = crypt.crypt (password, salt) self.pure = password @@ -120,8 +120,8 @@ def cryptPassword(password, useMD5): saltLen = 2 for i in range(saltLen): - salt = salt + whrandom.choice (string.letters + - string.digits + './') + salt = salt + random.choice (string.letters + + string.digits + './') return crypt.crypt (password, salt) -- cgit