Skip to content

Commit 2595265

Browse files
committed
typing
1 parent 9acb083 commit 2595265

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/sum_tree.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ Random.rand(rng::AbstractRNG, t::SumTree{T}) where {T} = get(t, rand(rng, T) * t
162162
Random.rand(t::SumTree) = rand(Random.GLOBAL_RNG, t)
163163

164164
function Random.rand(rng::AbstractRNG, t::SumTree{T}, n::Int) where {T}
165-
inds, priorities = Vector{Int}(undef, n), Vector{Float64}(undef, n)
165+
inds, priorities = Vector{Int}(undef, n), Vector{T}(undef, n)
166166
for i in 1:n
167167
v = (i - 1 + rand(rng, T)) / n
168168
ind, p = get(t, v * t.tree[1])

0 commit comments

Comments
 (0)