(message-canlock-generate): Require sha1-el.
authorKatsumi Yamaoka <yamaoka@jpl.org>
Tue, 13 Jan 2004 13:39:02 +0000 (13:39 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Tue, 13 Jan 2004 13:39:02 +0000 (13:39 +0000)
lisp/ChangeLog
lisp/message.el

index 3578d8b..79fda39 100644 (file)
@@ -1,3 +1,7 @@
+2004-01-13  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * message.el (message-canlock-generate): Require sha1-el.
+
 2004-01-13  Jesper Harder  <harder@ifa.au.dk>
 
        * message.el (message-expand-name): Silence the byte compiler.
index 70e56ef..4d7d1b6 100644 (file)
@@ -3894,6 +3894,7 @@ documentation for the function `mail-source-touch-pop'."
 (defun message-canlock-generate ()
   "Return a string that is non-trivial to guess.
 Do not use this for anything important, it is cryptographically weak."
+  (require 'sha1-el)
   (let (sha1-maximum-internal-length)
     (sha1 (concat (message-unique-id)
                  (format "%x%x%x" (random) (random t) (random))