Skip to content

Commit

Permalink
add compatibility for randexp (Julia PR #9144)
Browse files Browse the repository at this point in the history
  • Loading branch information
rfourquet committed Dec 1, 2014
1 parent 717dd90 commit 4f70a03
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Compat.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ if VERSION < v"0.4.0-dev+1827"
end
end

if VERSION < v"0.4.0-dev+1884"
randexp(rng::MersenneTwister) = Base.Random.randmtzig_exprnd(rng)
randexp() = Base.Random.randmtzig_exprnd()
export randexp
end

function rewrite_dict(ex)
length(ex.args) == 1 && return ex

Expand Down

0 comments on commit 4f70a03

Please sign in to comment.