projects
/
ghc-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3464a8
)
[project @ 2002-06-27 17:19:01 by sof]
author
sof
<unknown>
Thu, 27 Jun 2002 17:19:01 +0000
(17:19 +0000)
committer
sof
<unknown>
Thu, 27 Jun 2002 17:19:01 +0000
(17:19 +0000)
theStdGen: initialise it via mkStdRNG (as was done in <= 5.02)
System/Random.hs
patch
|
blob
|
history
diff --git
a/System/Random.hs
b/System/Random.hs
index
e3fa8b9
..
a6320a9
100644
(file)
--- a/
System/Random.hs
+++ b/
System/Random.hs
@@
-264,7
+264,9
@@
getStdGen :: IO StdGen
getStdGen = readIORef theStdGen
theStdGen :: IORef StdGen
-theStdGen = unsafePerformIO (newIORef (createStdGen 0))
+theStdGen = unsafePerformIO $ do
+ rng <- mkStdRNG 0
+ newIORef rng
newStdGen :: IO StdGen
newStdGen = do