Skip to content

Commit 313b21a

Browse files
committed
Fix duuplicate code, oops
1 parent 2d2362e commit 313b21a

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/combinators/product.jl

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -131,14 +131,6 @@ function Base.rand(rng::AbstractRNG, ::Type{T}, d::ProductMeasure{F,I}) where {T
131131
Base.Generator(s -> rand(r, d.pars.f(s)), d.pars.iter)
132132
end
133133

134-
function Base.rand(rng::AbstractRNG, ::Type{T}, d::ProductMeasure{F,I}) where {T,F,I<:Base.Generator}
135-
mar = marginals(d)
136-
elT = typeof(rand(rng, T, first(mar)))
137-
138-
sz = size(mar)
139-
r = ResettableRNG(rng, rand(rng, UInt))
140-
Base.Generator(s -> rand(r, d.pars.f(s)), d.pars.iter)
141-
end
142134

143135
@propagate_inbounds function Random.rand!(rng::AbstractRNG, d::ProductMeasure, x::AbstractArray)
144136
# TODO: Generalize this

0 commit comments

Comments
 (0)