Merge PR #4365: Simulator bugfix for multisim 7601778

This commit is contained in:
frog power 4000 2019-05-17 19:45:36 -04:00 committed by Alexander Bezobchuk
parent fd9f322b8c
commit cef788042b
3 changed files with 4 additions and 3 deletions

View File

@ -0,0 +1 @@
#4362 simulation setup bugfix for multisim 7601778

View File

@ -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
@ -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

View File

@ -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,
}