stumpwm-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[STUMP] [PATCH 2/2] Actually making the quotes random. The ones at the e


From: Raffael Mancini
Subject: [STUMP] [PATCH 2/2] Actually making the quotes random. The ones at the end will come less often afaik because of the 1/n distribution
Date: Wed, 18 Feb 2009 12:49:40 +0100

---
 primitives.lisp |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/primitives.lisp b/primitives.lisp
index 4007b8f..8b97735 100644
--- a/primitives.lisp
+++ b/primitives.lisp
@@ -967,6 +967,7 @@ suppress.")
   "Slogans from the stumpwm webpage")
 
 (defun random-slogan ()
+  (setf *random-state* (make-random-state t))
   (nth (random (length *slogans*)) *slogans*))
 
 (defvar *default-package* (find-package '#:stumpwm-user)
-- 
1.6.1.2





reply via email to

[Prev in Thread] Current Thread [Next in Thread]