projects
/
git-annex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75b3f0e
)
fix build with random-1.2
author
Joey Hess
<joeyh@joeyh.name>
Mon, 30 Sep 2024 18:56:06 +0000
(14:56 -0400)
committer
Joey Hess
<joeyh@joeyh.name>
Mon, 30 Sep 2024 18:56:06 +0000
(14:56 -0400)
getStdGen worked with that version but initStdGen is newer. For our
purposes, they are equivilant.
Command/Sim.hs
patch
|
blob
|
history
diff --git
a/Command/Sim.hs
b/Command/Sim.hs
index 93ae309ab68d3f05c4b7e76fff84e8dc1c5d6fd1..47a8d09e508babf24fb51771303b606be9e6eb06 100644
(file)
--- a/
Command/Sim.hs
+++ b/
Command/Sim.hs
@@
-66,7
+66,7
@@
startsim' simfile = do
giveup "A sim was previously started. Use `git-annex sim end` to stop it before starting a new one."
showLongNote $ UnquotedString "Sim started."
- rng <- fst . random <$>
ini
tStdGen
+ rng <- fst . random <$>
ge
tStdGen
let st = emptySimState rng simdir
case simfile of
Nothing -> startup simdir st []