Bad random-state seed on Windows
Bug #1102748 reported by
il71
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SBCL |
Fix Released
|
Medium
|
Unassigned |
Bug Description
version: sbcl 1.1.3 x86-64
make-random-state does not work as expected when run from saved executable on windows.
The test:
(defun main ()
(let ((*random-state* (make-random-state t)))
(print (random 100))))
is fine when being run in REPL (linux,windows) or from saved executable (linux).
However, when Windows executable is build by
(sb-ext:
it produces several repeated numbers.
tags: | added: os-windows |
Changed in sbcl: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
random-state is seeded with (get-internal- real-time) on windows, which will tend to be zero right at the start-up.