Skip to content

Commit 9eeb654

Browse files
pass on the rng
Co-authored-by: Nick Robinson <npr251@gmail.com>
1 parent f86249a commit 9eeb654

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rand_tangent.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ rand_tangent(rng::AbstractRNG, x::Array) = _compress_notangent(rand_tangent.(Ref
3636
# All other AbstractArray's can be handled using the ProjectTo mechanics.
3737
# and follow the same requirements
3838
function rand_tangent(rng::AbstractRNG, x::AbstractArray)
39-
return _compress_notangent(ProjectTo(x)(rand_tangent(collect(x))))
39+
return _compress_notangent(ProjectTo(x)(rand_tangent(rng, collect(x))))
4040
end
4141

4242
# TODO: arguably ProjectTo should handle this for us for AbstactArrays

0 commit comments

Comments
 (0)