Skip to content

Commit 8e496b8

Browse files
cscherreroschulz
authored andcommitted
use ConstantRNGs
1 parent 3d1084f commit 8e496b8

File tree

4 files changed

+4
-21
lines changed

4 files changed

+4
-21
lines changed

Project.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ version = "0.14.12"
77
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
88
ChangesOfVariables = "9e997f8a-9a97-42d5-a9f1-ce6bfc15e2c0"
99
Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"
10+
ConstantRNGs = "aa9b60e7-6b1c-4c29-a6e5-e43521412437"
1011
ConstructionBase = "187b0558-2788-49d3-abe0-74a17ed4e7c9"
1112
DensityInterface = "b429d917-457f-4dbc-8f4c-0cc954292b1d"
1213
FillArrays = "1a297f60-69ca-5386-bcde-b61e274b549b"
@@ -33,6 +34,7 @@ Tricks = "410a4b4d-49e4-4fbc-ab6d-cb71b17b3775"
3334
ChainRulesCore = "1"
3435
ChangesOfVariables = "0.1.3"
3536
Compat = "3.35, 4"
37+
ConstantRNGs = "0.1.1"
3638
ConstructionBase = "1.3"
3739
DensityInterface = "0.4"
3840
FillArrays = "0.12, 0.13, 1"

src/MeasureBase.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ using DensityInterface
2222

2323
using InverseFunctions
2424
using ChangesOfVariables
25+
using ConstantRNGs
2526

2627
import Base.iterate
2728
import ConstructionBase
@@ -147,7 +148,6 @@ include("standard/stdnormal.jl")
147148
include("combinators/half.jl")
148149

149150
include("rand.jl")
150-
include("fixedrng.jl")
151151

152152
include("density.jl")
153153
include("density-core.jl")

src/fixedrng.jl

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export testvalue
1313

1414
@inline testvalue(μ) = testvalue(Float64, μ)
1515

16-
@inline testvalue(::Type{T}, μ) where {T} = rand(FixedRNG(), T, μ)
16+
@inline testvalue(::Type{T}, μ) where {T} = rand(ConstantRNG(), T, μ)
1717

1818
testvalue(::Type{T}) where {T} = zero(T)
1919

0 commit comments

Comments
 (0)