Skip to content

Commit b4c1527

Browse files
Merge pull request #57 from SciML/dw/rand
Remove internal `rand`, `randn`, and `randexp`
2 parents 02af489 + bc5f03b commit b4c1527

2 files changed

Lines changed: 4 additions & 8 deletions

File tree

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "PoissonRandom"
22
uuid = "e409e4f3-bfea-5376-8464-e040bb5c01ab"
3-
version = "0.4.6"
3+
version = "0.4.7"
44

55
[deps]
66
LogExpFunctions = "2ab3a3ac-af41-5b50-aa03-7779005ae688"

src/PoissonRandom.jl

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,9 @@ export pois_rand, PassthroughRNG
88
# GPU-compatible Poisson sampling via PassthroughRNG
99
struct PassthroughRNG <: AbstractRNG end
1010

11-
rand(rng::PassthroughRNG) = Random.rand()
12-
randexp(rng::PassthroughRNG) = Random.randexp()
13-
randn(rng::PassthroughRNG) = Random.randn()
14-
15-
rand(rng::AbstractRNG) = Random.rand(rng)
16-
randexp(rng::AbstractRNG) = Random.randexp(rng)
17-
randn(rng::AbstractRNG) = Random.randn(rng)
11+
Random.rand(rng::PassthroughRNG) = rand()
12+
Random.randexp(rng::PassthroughRNG) = randexp()
13+
Random.randn(rng::PassthroughRNG) = randn()
1814

1915
count_rand(λ) = count_rand(Random.GLOBAL_RNG, λ)
2016
function count_rand(rng::AbstractRNG, λ)

0 commit comments

Comments
 (0)