Skip to content

Commit 4f70a03

Browse files
committed
add compatibility for randexp (Julia PR #9144)
1 parent 717dd90 commit 4f70a03

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Compat.jl

+6
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ if VERSION < v"0.4.0-dev+1827"
4343
end
4444
end
4545

46+
if VERSION < v"0.4.0-dev+1884"
47+
randexp(rng::MersenneTwister) = Base.Random.randmtzig_exprnd(rng)
48+
randexp() = Base.Random.randmtzig_exprnd()
49+
export randexp
50+
end
51+
4652
function rewrite_dict(ex)
4753
length(ex.args) == 1 && return ex
4854

0 commit comments

Comments
 (0)