Skip to content

Commit c882423

Browse files
committed
Revert "deepcopy on iterate"
This reverts commit e132021.
1 parent e132021 commit c882423

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/resettablerng.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ Base.randn(r::ResettableRNG, ::Type{T}) where {T} = randn(r.rng, T)
4747
Base.randn(r::ResettableRNG, ::Type{Float64}) where {T} = randn(r.rng, Float64)
4848

4949
function Base.iterate(r::ResettableRNG)
50-
r = deepcopy(r)
5150
reset!(r)
5251
return (rand(r), nothing)
5352
end

0 commit comments

Comments
 (0)