Skip to content

Commit

Permalink
fix build on old ghc
Browse files Browse the repository at this point in the history
getStdRandom used to be an IO action
  • Loading branch information
joeyh committed Jul 2, 2024
1 parent a65068f commit 2f2cc38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Annex/Cluster.hs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ clusterProxySelector clusteruuid protocolversion (Bypass bypass) = do
let lowestcost = Remote.cost (remote node)
samecost = node : takeWhile (\n -> Remote.cost (remote n) == lowestcost) rest
in do
n <- getStdRandom $
n <- liftIO $ getStdRandom $
randomR (0, length samecost - 1)
return (Just (samecost !! n))

Expand Down

0 comments on commit 2f2cc38

Please sign in to comment.