fix build with random-1.2
authorJoey Hess <joeyh@joeyh.name>
Mon, 30 Sep 2024 18:56:06 +0000 (14:56 -0400)
committerJoey 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

index 93ae309ab68d3f05c4b7e76fff84e8dc1c5d6fd1..47a8d09e508babf24fb51771303b606be9e6eb06 100644 (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 <$> initStdGen
+       rng <- fst . random <$> getStdGen
        let st = emptySimState rng simdir
        case simfile of
                Nothing -> startup simdir st []