fix build on old ghc
getStdRandom used to be an IO action
This commit is contained in:
parent
a65068fb66
commit
2f2cc38c28
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ clusterProxySelector clusteruuid protocolversion (Bypass bypass) = do
|
||||||
let lowestcost = Remote.cost (remote node)
|
let lowestcost = Remote.cost (remote node)
|
||||||
samecost = node : takeWhile (\n -> Remote.cost (remote n) == lowestcost) rest
|
samecost = node : takeWhile (\n -> Remote.cost (remote n) == lowestcost) rest
|
||||||
in do
|
in do
|
||||||
n <- getStdRandom $
|
n <- liftIO $ getStdRandom $
|
||||||
randomR (0, length samecost - 1)
|
randomR (0, length samecost - 1)
|
||||||
return (Just (samecost !! n))
|
return (Just (samecost !! n))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue