aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Belanger <[email protected]>2004-12-16 22:56:08 +0000
committerJay Belanger <[email protected]>2004-12-16 22:56:08 +0000
commit2d3da38b67b30129be20c34eac4514cf3c5109ef (patch)
treeeab612725fd94a86d9fa6f99b4b434e8661ba5cf
parent3cc2b29c6ae596534ffae6d9c9ad4f67dd52fb1d (diff)
(math-random-digit): Call math-init-random-base if var-RandSeed is nil.
-rw-r--r--lisp/calc/calc-comb.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/calc/calc-comb.el b/lisp/calc/calc-comb.el
index 24e3e5f182..262db6c9bd 100644
--- a/lisp/calc/calc-comb.el
+++ b/lisp/calc/calc-comb.el
@@ -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