fix build with old random
getStdGen used to be an IO not a MonadIO action
This commit is contained in:
parent
d2ad07f5a3
commit
743690d022
1 changed files with 1 additions and 1 deletions
|
@ -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 <$> getStdGen
|
||||
rng <- liftIO $ fst . random <$> getStdGen
|
||||
let st = emptySimState rng simdir
|
||||
case simfile of
|
||||
Nothing -> startup simdir st []
|
||||
|
|
Loading…
Reference in a new issue