Skip to content

Commit

Permalink
stat/distuv: don't use global rand state for test
Browse files Browse the repository at this point in the history
  • Loading branch information
kortschak committed Oct 20, 2020
1 parent 3416eff commit 1f99927
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stat/distuv/exponential_test.go
Expand Up @@ -45,7 +45,7 @@ func TestExponentialProb(t *testing.T) {

func TestExponentialFitPrior(t *testing.T) {
t.Parallel()
testConjugateUpdate(t, func() ConjugateUpdater { return &Exponential{Rate: 13.7} })
testConjugateUpdate(t, func() ConjugateUpdater { return &Exponential{Rate: 13.7, Src: rand.NewSource(1)} })
}

func TestExponential(t *testing.T) {
Expand Down

0 comments on commit 1f99927

Please sign in to comment.