Skip to content

Commit d721091

Browse files
Yuan-Ru-Linoschulz
authored andcommitted
Fix rand function to use provided RNG
1 parent 72ce1d1 commit d721091

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/uv_binned_dist.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ end
125125

126126

127127
function Random.rand(rng::AbstractRNG, d::UvBinnedDist{T}) where T
128-
u = rand(T)
128+
u = rand(rng, T)
129129
@assert axes(d._edge) == axes(d._edge_cdf)
130130
i_lo, i_hi = _find_idxs_lohi(d._edge_cdf, u)
131131
x_lo, x_hi = d._edge[i_lo], d._edge[i_hi]

0 commit comments

Comments
 (0)