From 4f70a038372479bd9499a5ef8fdc38ce12eda549 Mon Sep 17 00:00:00 2001 From: Rafael Fourquet Date: Mon, 1 Dec 2014 10:25:11 +0530 Subject: [PATCH] add compatibility for randexp (Julia PR #9144) --- src/Compat.jl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Compat.jl b/src/Compat.jl index 0012c3980..2595db05f 100644 --- a/src/Compat.jl +++ b/src/Compat.jl @@ -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