diff options
Diffstat (limited to 'Mailman/Utils.py')
-rw-r--r-- | Mailman/Utils.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Mailman/Utils.py b/Mailman/Utils.py index a6e07e10..18b1c468 100644 --- a/Mailman/Utils.py +++ b/Mailman/Utils.py @@ -325,6 +325,9 @@ def Secure_MakeRandomPassword(length): # We have no available source of cryptographically # secure random characters. Log an error and fallback # to the user friendly passwords. + from Mailman.Logging.Syslog import syslog + syslog('error', + 'urandom not available, passwords not secure') return UserFriendly_MakeRandomPassword(length) newbytes = os.read(fd, length - bytesread) bytes.append(newbytes) |