mirror of
https://github.com/0glabs/0g-chain.git
synced 2025-01-12 16:25:17 +00:00
fix: non-determinism in auction sims (#432)
This commit is contained in:
parent
1fab788fd5
commit
acc96952a7
@ -39,7 +39,7 @@ func SimulateMsgPlaceBid(authKeeper auth.AccountKeeper, keeper auction.Keeper) s
|
|||||||
})
|
})
|
||||||
|
|
||||||
// shuffle auctions slice so that bids are evenly distributed across auctions
|
// shuffle auctions slice so that bids are evenly distributed across auctions
|
||||||
rand.Shuffle(len(openAuctions), func(i, j int) {
|
r.Shuffle(len(openAuctions), func(i, j int) {
|
||||||
openAuctions[i], openAuctions[j] = openAuctions[j], openAuctions[i]
|
openAuctions[i], openAuctions[j] = openAuctions[j], openAuctions[i]
|
||||||
})
|
})
|
||||||
// TODO do the same for accounts?
|
// TODO do the same for accounts?
|
||||||
|
Loading…
Reference in New Issue
Block a user