Function: cl-make-random-state
cl-make-random-state is an autoloaded and byte-compiled function
defined in cl-extra.el.gz.
Signature
(cl-make-random-state &optional STATE)
Documentation
Return a copy of random-state STATE, or of the internal state if omitted.
If STATE is t, return a new state object seeded from the time of day.
Aliases
make-random-state (obsolete since 27.1)
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/cl-extra.el.gz
;;;###autoload
(defun cl-make-random-state (&optional state)
"Return a copy of random-state STATE, or of the internal state if omitted.
If STATE is t, return a new state object seeded from the time of day."
(unless state (setq state cl--random-state))
(if (cl-random-state-p state)
(copy-sequence state)
(cl--make-random-state (if (integerp state) state (cl--random-time)))))