Skip to content

Commit 5b01908

Browse files
Downcast
1 parent 8f05881 commit 5b01908

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rng.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Split keys of the internal Philox2x into n distinct seeds
4646
"""
4747
function split(r::TracedRNG{T}, n::Integer) where {T}
4848
n == 1 && return [r.rng.key]
49-
return map(i -> hash(r.rng.key, r.rng.ctr1 + i), 1:n)
49+
return map(i -> hash(r.rng.key, convert(UInt, r.rng.ctr1 + i)), 1:n)
5050
end
5151

5252
"""

0 commit comments

Comments
 (0)