Skip to content

Commit

Permalink
Merge PR #4365: Simulator bugfix for multisim 7601778
Browse files Browse the repository at this point in the history
  • Loading branch information
rigelrozanski authored and alexanderbez committed May 17, 2019
1 parent fd9f322 commit cef7880
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .pending/bugfixes/sdk/4362-simulation-setu
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#4362 simulation setup bugfix for multisim 7601778
4 changes: 2 additions & 2 deletions cmd/gaia/contrib/runsim/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ var (
3012, 4728, 37827, 981928, 87821, 891823782,
989182, 89182391, 11, 22, 44, 77, 99, 2020,
3232, 123123, 124124, 582582, 18931893,
29892989, 30123012, 47284728,
29892989, 30123012, 47284728, 7601778,
}

// goroutine-safe process map
Expand All @@ -36,7 +36,7 @@ var (
results chan bool

// command line arguments and options
jobs int = runtime.GOMAXPROCS(0)
jobs = runtime.GOMAXPROCS(0)
blocks string
period string
testname string
Expand Down
2 changes: 1 addition & 1 deletion x/simulation/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func RandomParams(r *rand.Rand) Params {
PastEvidenceFraction: r.Float64(),
NumKeys: RandIntBetween(r, 2, 250),
EvidenceFraction: r.Float64(),
InitialLivenessWeightings: []int{r.Intn(80), r.Intn(10), r.Intn(10)},
InitialLivenessWeightings: []int{RandIntBetween(r, 1, 80), r.Intn(10), r.Intn(10)},
LivenessTransitionMatrix: defaultLivenessTransitionMatrix,
BlockSizeTransitionMatrix: defaultBlockSizeTransitionMatrix,
}
Expand Down

0 comments on commit cef7880

Please sign in to comment.