Skip to content

Commit 27d4378

Browse files
authored
Seed RNG inside model_dimension() (#923)
1 parent b0ff259 commit 27d4378

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

benchmarks/src/DynamicPPLBenchmarks.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Return the dimension of `model`, accounting for linking, if any.
2323
"""
2424
function model_dimension(model, islinked)
2525
vi = VarInfo()
26-
model(vi)
26+
model(StableRNG(23), vi)
2727
if islinked
2828
vi = DynamicPPL.link(vi, model)
2929
end

0 commit comments

Comments
 (0)