Skip to content

Commit 0427a5a

Browse files
committed
threadnet: fixed rng for GSM
1 parent 0f9c4c1 commit 0427a5a

File tree

1 file changed

+3
-2
lines changed
  • ouroboros-consensus-diffusion/src/unstable-diffusion-testlib/Test/ThreadNet

1 file changed

+3
-2
lines changed

ouroboros-consensus-diffusion/src/unstable-diffusion-testlib/Test/ThreadNet/Network.hs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,7 +1034,8 @@ runThreadNetwork
10341034

10351035
let rng = case seed of
10361036
Seed s -> mkStdGen s
1037-
(kaRng, psRng) = split rng
1037+
(kaRng, rng') = split rng
1038+
(gsmRng, psRng) = split rng'
10381039
publicPeerSelectionStateVar <- makePublicPeerSelectionStateVar
10391040
let nodeKernelArgs =
10401041
NodeKernelArgs
@@ -1073,7 +1074,7 @@ runThreadNetwork
10731074
}
10741075
, gsmArgs =
10751076
GSM.GsmNodeKernelArgs
1076-
{ gsmAntiThunderingHerd = kaRng
1077+
{ gsmAntiThunderingHerd = gsmRng
10771078
, gsmDurationUntilTooOld = Nothing
10781079
, gsmMarkerFileView =
10791080
GSM.MarkerFileView

0 commit comments

Comments
 (0)