Skip to content

Commit 9edc5ff

Browse files
committed
fix type instability
1 parent d124caa commit 9edc5ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/multivariate/stereographic.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function AbstractMCMC.step(
7979
ℓp_sphere = logdensity_sphere(ℓp, x)
8080
ℓw = ℓp_sphere - Random.randexp(rng, eltype(x))
8181

82-
θ = convert(eltype(x), 2π) * rand(rng)
82+
θ = convert(eltype(x), 2π) * rand(eltype(x), rng)
8383
θ_max = θ
8484
θ_min = θ - convert(eltype(x), 2π)
8585

0 commit comments

Comments
 (0)