Skip to content

Commit

Permalink
stat/sampleuv: set src appropriately in NewWeighted.
Browse files Browse the repository at this point in the history
Fixes #161.
  • Loading branch information
btracey committed Aug 1, 2017
1 parent 39acce8 commit 0206137
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions stat/sampleuv/weighted.go
Expand Up @@ -42,6 +42,7 @@ func NewWeighted(w []float64, src *rand.Rand) Weighted {
s := Weighted{
weights: make([]float64, len(w)),
heap: make([]float64, len(w)),
src: src,
}
s.ReweightAll(w)
return s
Expand Down

0 comments on commit 0206137

Please sign in to comment.