Skip to content

Commit 8daec65

Browse files
committed
chore: fix runic formatting
1 parent 9cb2366 commit 8daec65

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/host/random.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ function Random.randn!(rng::RNG, A::AnyGPUArray{T}) where T <: Number
9797
@kernel function randn!(a, randstates)
9898
i = @index(Global, Linear)
9999
idx = 2*(i - 1) + 1
100-
threadidx = (i-1)%length(randstates) + 1
100+
threadidx = (i - 1) % length(randstates) + 1
101101
U1 = gpu_rand(T, threadidx, randstates)
102102
U2 = gpu_rand(T, threadidx, randstates)
103103
Z0 = sqrt(T(-2.0)*log(U1))*cos(T(2pi)*U2)

test/testsuite/random.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
cpu_rng = Random.default_rng()
88

99
@testset "rand" begin # uniform
10-
for T in eltypes, d in (10, (10,10), (128,128))
10+
for T in eltypes, d in (10, (10, 10), (128, 128))
1111
A = AT{T}(undef, d)
1212
B = copy(A)
1313
rand!(rng, A)

0 commit comments

Comments
 (0)