Slightly improve random seed on Windows.
authorStas Boukarev <stassats@gmail.com>
Wed, 23 Jan 2013 10:33:08 +0000 (14:33 +0400)
committerStas Boukarev <stassats@gmail.com>
Wed, 23 Jan 2013 11:33:12 +0000 (15:33 +0400)
Use unix-getpid on Windows too.

src/code/target-random.lisp

index 4eb87a8..073ec4e 100644 (file)
@@ -158,7 +158,7 @@ http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/emt.html
        (progn
          (/show0 "No /dev/urandom, using randomness from time and pid")
          (+ (get-internal-real-time)
-            #!+unix (ash (sb!unix:unix-getpid) 32))))))
+            (ash (sb!unix:unix-getpid) 32))))))
     ;; For convenience to users, we accept (simple-array (unsigned-byte 8) (*))
     ;; We just convert it to (simple-array (unsigned-byte 32) (*)) in a
     ;; completely straightforward way.