mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-28 07:45:00 +00:00
(math-random-digit): Call math-init-random-base if var-RandSeed is nil.
This commit is contained in:
parent
3cc2b29c6a
commit
2d3da38b67
@ -601,7 +601,7 @@
|
||||
;;; Shuffling algorithm from Numerical Recipes, section 7.1.
|
||||
(defun math-random-digit ()
|
||||
(let (i math-random-last)
|
||||
(or (eq var-RandSeed math-last-RandSeed)
|
||||
(or (and var-RandSeed (eq var-RandSeed math-last-RandSeed))
|
||||
(math-init-random-base))
|
||||
(or math-random-cache
|
||||
(progn
|
||||
|
Loading…
Reference in New Issue
Block a user