Issue #326 - Use timer to seed pseudorandom numbers

This commit is contained in:
Justin Ethier 2019-07-24 13:19:38 -04:00
parent f7607e47d6
commit 85751cda2b
2 changed files with 2 additions and 1 deletions

View file

@ -13,6 +13,7 @@ Bug Fixes
- Fixed the MSYS2 build script and instructions, so it is possible to build on Windows again!
- Fixed `exit` to return the appropriate status code when a boolean is passed, per R7RS:
- Modified `(srfi 27)` to use the timer to seed the pseudorandom number generator.
> If no argument is supplied, or if obj is #t, the exit procedure should communicate to the operating system that the program exited normally. If obj is #f, the exit procedure should communicate to the operating system that the program exited abnormally.

View file

@ -22,7 +22,7 @@
(begin
;; Numbers taken from bsd random
;(define mult 1103515245)
(define incr 12345)
(define incr (exact (current-second)))
(define m 536870912)
;; Cutting off seems like a good idea
;(define cutoff 100)