Skip to content

Commit cc6c67b

Browse files
committed
Clean-up.
1 parent 36ba944 commit cc6c67b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/reference.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ end
379379

380380
const GLOBAL_RNG = Ref{Union{Nothing,GPUArrays.RNG}}(nothing)
381381
function GPUArrays.default_rng(::Type{<:JLArray})
382-
if GLOBAL_RNG[] == nothing
382+
if GLOBAL_RNG[] === nothing
383383
N = MAXTHREADS
384384
state = JLArray{NTuple{4, UInt32}}(undef, N)
385385
rng = GPUArrays.RNG(state)

0 commit comments

Comments
 (0)