Skip to content

Commit 0ff49d0

Browse files
Doc: Proper attribution (#41205)
* Doc: Proper attribution [skip ci] * Update Xoshiro.jl [skip ci] * Fix whitespace [skip ci]
1 parent ed24cfb commit 0ff49d0

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

src/task.c

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -649,14 +649,16 @@ JL_DLLEXPORT void jl_rethrow_other(jl_value_t *e JL_MAYBE_UNROOTED)
649649
throw_internal(ct, NULL);
650650
}
651651

652-
/* This is xoshiro256++ 1.0, used for tasklocal random number generation in julia.
652+
/* This is xoshiro256++ 1.0, used for tasklocal random number generation in Julia.
653653
This implementation is intended for embedders and internal use by the runtime, and is
654-
based on the reference implementation on http://prng.di.unimi.it
654+
based on the reference implementation at https://prng.di.unimi.it
655655
656-
Credits go to Sebastiano Vigna for coming up with this PRNG.
656+
Credits go to David Blackman and Sebastiano Vigna for coming up with this PRNG.
657+
They described xoshiro256++ in "Scrambled Linear Pseudorandom Number Generators",
658+
ACM Trans. Math. Softw., 2021.
657659
658-
There is a pure julia implementation in stdlib that tends to be faster when used from
659-
within julia, due to inlining and more agressive architecture-specific optimizations.
660+
There is a pure Julia implementation in stdlib that tends to be faster when used from
661+
within Julia, due to inlining and more agressive architecture-specific optimizations.
660662
*/
661663
JL_DLLEXPORT uint64_t jl_tasklocal_genrandom(jl_task_t *task) JL_NOTSAFEPOINT
662664
{

stdlib/Random/src/Xoshiro.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66
"""
77
Xoshiro
88
9-
Xoshiro256++ is a fast pseudorandom number generator originally developed by Sebastian Vigna.
10-
Reference implementation is available at http://prng.di.unimi.it
9+
Xoshiro256++ is a fast pseudorandom number generator described by David Blackman and
10+
Sebastiano Vigna in "Scrambled Linear Pseudorandom Number Generators",
11+
ACM Trans. Math. Softw., 2021. Reference implementation is available
12+
at http://prng.di.unimi.it
1113
1214
Apart from the high speed, Xoshiro has a small memory footprint, making it suitable for
1315
applications where many different random states need to be held for long time.

0 commit comments

Comments
 (0)