mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2025-02-05 21:26:18 +00:00
Revert "org-compat.el: New compatibility function `org-random'"
This reverts commit 7719734dd7b216e29ee7f5be5077d13004903a7d. * lisp/org-id.el: Do not use (random t), we just want a new random number, not a re-seeding of the PRNG for which (random t) doesn't provide enough entropy anyway. Even if (random) would always produce the same sequence, the other components going into the MD5 hash ensure that the result will be unique.
This commit is contained in:
parent
f29131c3d2
commit
c5977e7e9d
@ -460,12 +460,6 @@ With two arguments, return floor and remainder of their quotient."
|
||||
(defun org-release () "N/A")
|
||||
(defun org-git-version () "N/A !!check installation!!"))))))
|
||||
|
||||
(defun org-random ()
|
||||
"Call ̀random' appropriately."
|
||||
(if (or (featurep 'xemacs) (version< emacs-version "24.2.50.1"))
|
||||
(random t)
|
||||
(random)))
|
||||
|
||||
(provide 'org-compat)
|
||||
|
||||
;;; org-compat.el ends here
|
||||
|
@ -317,7 +317,7 @@ So a typical ID could look like \"Org:4nd91V40HI\"."
|
||||
(defun org-id-uuid ()
|
||||
"Return string with random (version 4) UUID."
|
||||
(let ((rnd (md5 (format "%s%s%s%s%s%s%s"
|
||||
(org-random)
|
||||
(random)
|
||||
(current-time)
|
||||
(user-uid)
|
||||
(emacs-pid)
|
||||
|
Loading…
x
Reference in New Issue
Block a user