mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-18 21:29:18 +02:00
Issue #326 - Use timer to seed pseudorandom numbers
This commit is contained in:
parent
f7607e47d6
commit
85751cda2b
2 changed files with 2 additions and 1 deletions
|
@ -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.
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue