summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Ecay <aaronecay@gmail.com>2015-01-18 23:46:02 -0500
committerAaron Ecay <aaronecay@gmail.com>2015-01-18 23:46:02 -0500
commitf1dcbfe79c0a9769c7b728336c1c8c4ced7893fc (patch)
tree39e2b9213f9f2940cc5fb261636ea3b716be653c
parent56bbacfd89bcdd773a20b102f956edc2aa5ff9d9 (diff)
downloadorg-mode-f1dcbfe79c0a9769c7b728336c1c8c4ced7893fc.tar.gz
org-footnote: Use a simpler method to generate random labels.
* lisp/org-footnote.el (org-footnote-new): Improve generation of random labels.
-rw-r--r--lisp/org-footnote.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/org-footnote.el b/lisp/org-footnote.el
index 9fe9903..03034e9 100644
--- a/lisp/org-footnote.el
+++ b/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): "