Skip to content

Commit 3b63174

Browse files
added rand functions to AbstractRNG
1 parent d7733b1 commit 3b63174

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/PoissonRandom.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ rand(rng::PassthroughRNG) = Random.rand()
1313
randexp(rng::PassthroughRNG) = Random.randexp()
1414
randn(rng::PassthroughRNG) = Random.randn()
1515

16+
rand(rng::AbstractRNG) = Random.rand(rng)
17+
randexp(rng::AbstractRNG) = Random.randexp(rng)
18+
randn(rng::AbstractRNG) = Random.randn(rng)
19+
1620
count_rand(λ) = count_rand(Random.GLOBAL_RNG, λ)
1721
function count_rand(rng::AbstractRNG, λ)
1822
n = 0

0 commit comments

Comments
 (0)