Browse Source

org-footnote: Use a simpler method to generate random labels.

* lisp/org-footnote.el (org-footnote-new): Improve generation of
random labels.
Aaron Ecay 10 years ago
parent
commit
f1dcbfe79c
1 changed files with 1 additions and 2 deletions
  1. 1 2
      lisp/org-footnote.el

+ 1 - 2
lisp/org-footnote.el

@@ -465,8 +465,7 @@ or new, let the user edit the definition of the footnote."
 	    ((member org-footnote-auto-label '(t plain))
 	     propose)
 	    ((equal org-footnote-auto-label 'random)
-	     (require 'org-id)
-	     (substring (org-id-uuid) 0 8))
+	     (format "fn:%x" (random #x100000000)))
 	    (t
 	     (org-icompleting-read
 	      "Label (leave empty for anonymous): "