Skip to content

Commit

Permalink
Merge pull request #21 from JuliaLang/rf/randexp
Browse files Browse the repository at this point in the history
add compatibility for randexp (Julia PR #9144)
  • Loading branch information
ivarne committed Dec 1, 2014
2 parents 717dd90 + 4f70a03 commit 5a3950a
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 5a3950a

Please sign in to comment.