mirror of
https://github.com/carp-lang/Carp.git
synced 2024-09-11 05:25:28 +03:00
core: call Random.reseed at program start
This commit is contained in:
parent
772051ede9
commit
1e04da3dac
@ -26,6 +26,11 @@
|
||||
(do
|
||||
(set! s (mod (+ (* s a) c) m))
|
||||
(/ s m)))
|
||||
|
||||
(private _)
|
||||
(hidden _)
|
||||
(doc _ "forces reseeding based on the current time at program start")
|
||||
(def _ (do (seed) 0))
|
||||
)
|
||||
|
||||
(defmodule Int
|
||||
|
Loading…
Reference in New Issue
Block a user