fix build with old random

getStdGen used to be an IO not a MonadIO action
This commit is contained in:
Joey Hess 2024-09-30 17:36:19 -04:00
parent d2ad07f5a3
commit 743690d022
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -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 []