Fix problem with alexandria:shuffle not being truly random

Due to the way random works, we need to see it on each run of the
binary - thus need to make a new random state.
This commit is contained in:
2025-02-14 23:26:06 +00:00
parent bf6cace5c3
commit 350221cfb0

View File

@@ -64,6 +64,7 @@
(split 5)))
(defun start ()
(setf *random-state* (make-random-state t))
(destructuring-bind (hand . rest) (generate-hand)
(declare (ignore rest))
(->> hand cardset->str (format t "Hand=[~a]~%"))