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

* lisp/org-footnote.el (org-footnote-new): Improve generation of
random labels.
This commit is contained in:
Aaron Ecay 2015-01-18 23:46:02 -05:00
parent 56bbacfd89
commit f1dcbfe79c
1 changed files with 1 additions and 2 deletions

View File

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