1
0
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:
Achim Gratz 2012-09-11 21:42:38 +02:00
parent f29131c3d2
commit c5977e7e9d
2 changed files with 1 additions and 7 deletions

View File

@ -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

View File

@ -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)