From f1dcbfe79c0a9769c7b728336c1c8c4ced7893fc Mon Sep 17 00:00:00 2001 From: Aaron Ecay Date: Sun, 18 Jan 2015 23:46:02 -0500 Subject: [PATCH] org-footnote: Use a simpler method to generate random labels. * lisp/org-footnote.el (org-footnote-new): Improve generation of random labels. --- lisp/org-footnote.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lisp/org-footnote.el b/lisp/org-footnote.el index 9fe990302..03034e9e6 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): "