Skip to content

Commit

Permalink
jl_rng_split: permute state by multiply instead of add
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanKarpinski committed Feb 20, 2024
1 parent 02699bb commit 5f20082
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/task.c
Original file line number Diff line number Diff line change
Expand Up @@ -1079,7 +1079,7 @@ void jl_rng_split(uint64_t dst[JL_RNG_SIZE], uint64_t src[JL_RNG_SIZE]) JL_NOTSA
p ^= p >> ((p >> 59) + 5);
p *= m[i];
p ^= p >> 43;
dst[i] = src[i] + p; // SplitMix dot product
dst[i] = src[i] * (p | 1); // multiplicative permutation
}
}

Expand Down

0 comments on commit 5f20082

Please sign in to comment.