Skip to content

Commit 5587a2f

Browse files
Apply suggestions from code review
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent b471fd7 commit 5587a2f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Overlay.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,9 @@ for randfun in (:rand, :randn, :randexp)
103103
return TracedRandom.$(overload_randfun!)(rng, A)
104104
end
105105
@reactant_overlay @noinline function Random.$(randfun!)(A::AnyTracedRArray)
106-
return TracedRandom.$(overload_randfun!)(call_with_reactant(TracedRandom.default_rng), A)
106+
return TracedRandom.$(overload_randfun!)(
107+
call_with_reactant(TracedRandom.default_rng), A
108+
)
107109
end
108110
end
109111
end

src/stdlibs/Random.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ end
4040
@noinline ReactantRNG(seed::AbstractVector) = ReactantRNG(seed, "DEFAULT")
4141

4242
@noinline function default_rng()
43-
ReactantRNG()
43+
return ReactantRNG()
4444
end
4545

4646
@noinline rng_algorithm(rng::ReactantRNG) = rng.algorithm

0 commit comments

Comments
 (0)