projects
/
sbcl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f10d937
)
Slightly improve random seed on Windows.
author
Stas Boukarev
<stassats@gmail.com>
Wed, 23 Jan 2013 10:33:08 +0000
(14:33 +0400)
committer
Stas 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
patch
|
blob
|
history
diff --git
a/src/code/target-random.lisp
b/src/code/target-random.lisp
index
4eb87a8
..
073ec4e
100644
(file)
--- a/
src/code/target-random.lisp
+++ b/
src/code/target-random.lisp
@@
-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.