Skip to content

Commit c7bca9c

Browse files
committed
Add reference to source of rng.
1 parent cb8555d commit c7bca9c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/random.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
## device interface
22

3+
# hybrid Tausworthe and Linear Congruent generator from
4+
# https://developer.nvidia.com/gpugems/GPUGems3/gpugems3_ch37.html
5+
36
function TausStep(z::Unsigned, S1::Integer, S2::Integer, S3::Integer, M::Unsigned)
47
b = (((z << S1) z) >> S2)
58
return (((z & M) << S3) b)

0 commit comments

Comments
 (0)