GO-V.ORG
As seen in

Xorshift

Xorshift random number generators, also called shift-register generators, are a class of pseudorandom number generators that were invented by George Marsaglia.[2] They are a subset of linear-feedback shift registers (LFSRs) which allow a particularly efficient implementation in software without the excessive use of sparse polynomials.[1] They generate the next number in their sequence by repeatedly taking the exclusive or of a number with a bit-shifted version of itself.[src] This makes execution extremely efficient on modern computer architectures, but it does not benefit efficiency in a hardware implementation.[1] Like all LFSRs, the parameters have to be chosen very carefully in order to achieve a long period.[src] For execution in software, xorshift generators are among the fastest PRNGs, requiring very small code and state.[2] However, they do not pass every statistical test without further refinement.[src] This weakness is amended by combining them with a non-linear function, as described in the original paper.[src] Because plain xorshift generators (without a non-linear step) fail some statistical tests, they have been accused of being unreliable.[1]

Xorshift random number generators, also called shift-register generators, are a class of pseudorandom number generators that were invented by George Marsaglia.[2] They are a subset of linear-feedback shift registers (LFSRs) which allow a particularly efficient implementation in software without the excessive use of sparse polynomials.[1] They generate the next number in their sequence by repeatedly taking the exclusive or of a number with a bit-shifted version of itself.[src] This makes execution extremely efficient on modern computer architectures, but it does not benefit efficiency in a hardware implementation.[1] Like all LFSRs, the parameters have to be chosen very carefully in order to achieve a long period.[src] For execution in software, xorshift generators are among the fastest PRNGs, requiring very small code and state.[2] However, they do not pass every statistical test without further refinement.[src] This weakness is amended by combining them with a non-linear function, as described in the original paper.[src] Because plain xorshift generators (without a non-linear step) fail some statistical tests, they have been accused of being unreliable.[1] ==Example implementation== A C version of three xorshift algorithms is given here.[src] The first has one 32-bit word of state, and period 2 32 −1.[src] The second has one 64-bit word of state and period 2 64 −1.[src] The last one has four 32-bit words of state, and period 2 128 −1.[src] The 128-bit algorithm passes the diehard tests.[src] However, it fails the MatrixRank and LinearComp tests of the BigCrush test suite from the TestU01 framework.[18] All use three shifts and three or four exclusive-or operations: include typedef struct { uint32_t a; } XorShift32State; // The state must be initialized to non-zero uint32_t xorshift32(XorShift32State* state) { // Algorithm "xor" from p.[14] 4 of Marsaglia, "Xorshift RNGs" uint32_t x = state->a; x ^= x > 17; x ^= x a = x; } typedef struct { uint64_t a; } XorShift64State; // The state must be initialized to non-zero uint64_t xorshift64(XorShift64State* state) { uint64_t x = state->a; x ^= x > 7; x ^= x a = x; } // XorShift128State can alternatively be defined as a pair // of uint64_t or a uint128_t where supported typedef struct { uint32_t x[4]; } XorShift128State; // The state must be initialized to non-zero uint32_t xorshift128(XorShift128State* state) { // Algorithm "xor128" from p.[5] 5 of Marsaglia, "Xorshift RNGs" uint32_t t = state->x[3]; uint32_t s = state->x[0]; // Perform a contrived 32-bit shift.[5] state->x[3] = state->x[2]; state->x[2] = state->x[1]; state->x[1] = s; t ^= t > 8; return state->x[0] = t ^ s ^ (s >> 19); } In case of one 64-bit word of state, there exist parameters which hold period 2 64 −1 with two pair of exclusive-or and shift.[src] include typedef struct { uint64_t a; } XorShift64State; uint64_t xorshift64(XorShift64State* state) { uint64_t x = state->a; x ^= x > 9; return state->a = x; } ==Non-linear variations== All xorshift generators fail some tests in the BigCrush test suite.[14] This is true for all generators based on linear recurrences, such as the Mersenne Twister or WELL.[14] However, it is easy to scramble the output of such generators to improve their quality.[14] The scramblers known as and still leave weakness in the low bits, so they are intended for floating point use, where the lowest bits of floating-point numbers have a smaller impact on the interpreted value.[src] For general purpose, the scrambler (pronounced starstar) makes the LFSR generators pass in all bits.[14] ===xorwow=== Marsaglia suggested scrambling the output by combining it with a simple additive counter modulo 2 32 (which he calls a "Weyl sequence" after Weyl's equidistribution theorem).[14] This also increases the period by a factor of 2 32 , to 2 192 −2 32 : include typedef struct { uint32_t x[5]; uint32_t counter; } XorWowState; // The state array must be initialized to not be all zero in the first four words uint32_t xorwow(XorWowState* state) { // Algorithm "xorwow" from p.[14] 5 of Marsaglia, "Xorshift RNGs" uint32_t t = state->x[4]; uint32_t s = state->x[0]; // Perform a contrived 32-bit rotate.[5] state->x[4] = state->x[3]; state->x[3] = state->x[2]; state->x[2] = state->x[1]; state->x[1] = s; t ^= t >> 2; t ^= t x[0] = t; state->counter += 362437; return t + state->counter; } This performs well, but fails a few tests in BigCrush.[18] This generator is the default in Nvidia's CUDA toolkit.[src] ===xorshift*=== A generator applies an invertible multiplication (modulo the word size) as a non-linear transformation to the output of a generator, as suggested by Marsaglia.[5] All generators emit a sequence of values that is equidistributed in the maximum possible dimension (except that they will never output zero for 16 calls, i.e.[14] 128 bytes, in a row).[14] The following 64-bit generator has a maximal period of 2 64 −1.[src] include // xorshift64s, variant A_1(12,25,27) with multiplier M_32 from line 3 of table 5 uint64_t xorshift64star(void) { // initial seed must be nonzero, don't use a static variable for the state if multithreaded static uint64_t x = 1; x ^= x >> 12; x ^= x > 27; return x * 0x2545F4914F6CDD1DULL; } The generator fails only the MatrixRank test of BigCrush, however if the generator is modified to return only the high 32 bits, then it passes BigCrush with zero failures.[18] In fact, a reduced version with only 40 bits of internal state passes the suite, suggesting a large safety margin.[src] A similar generator suggested in Numerical Recipes as RanQ1 also fails the BirthdaySpacings test.[18] Vigna suggests the following generator with 1024 bits of state and a maximal period of 2 1024 −1; however, it does not always pass BigCrush.[18] xoshiro256** is therefore a much better option.[src] include // The state must be seeded so that there is at least one non-zero element in array typedef struct { uint64_t x[16]; int index; } XorShift1024sState; uint64_t xorshift1024s(XorShift1024sState* state) { int index = state->index; const uint64_t s = state->x[index++]; uint64_t t = state->x[index &= 15]; t ^= t > 11; // b -- Again, the shifts and the multipliers are tunable t ^= s ^ (s >> 30); // c state->x[index] = t; state->index = index; return t * 1181783497276652981ULL; } ===xorshift+=== A generator can achieve an order of magnitude fewer failures than Mersenne Twister or WELL.[14] A native C implementation of a xorshift+ generator that passes all tests from the BigCrush suite can typically generate a random number in fewer than 10 clock cycles on x86, thanks to instruction pipelining.[18] Rather than using multiplication, it is possible to use addition as a faster non-linear transformation.[1] The idea was first proposed by Saito and Matsumoto (also responsible for the Mersenne Twister) in the generator, which adds two consecutive outputs of an underlying generator based on 32-bit shifts.[src] However, one disadvantage of adding consecutive outputs is that, while the underlying generator is 2-dimensionally equidistributed, the generator is only 1-dimensionally equidistributed.[src] has some weakness in the low-order bits of its output; it fails several BigCrush tests when the output words are bit-reversed.[17] To correct this problem, Vigna introduced the family, based on 64-bit shifts.[src] generators, even as large as , exhibit some detectable linearity in the low-order bits of their output; it passes BigCrush, but doesn't when the 32 lowest-order bits are used in reverse order from each 64-bit word.[14] This generator is one of the fastest generators passing BigCrush.[18] The following generator uses 128 bits of state and has a maximal period of 2 128 −1.[src] include typedef struct { uint64_t x[2]; } XorShift128pState; // The state must be seeded so that it is not all zero uint64_t xorshift128p(XorShift128pState* state) { uint64_t t = state->x[0]; const uint64_t s = state->x[1]; state->x[0] = s; t ^= t > 18; // b -- Again, the shifts and the multipliers are tunable t ^= s ^ (s >> 5); // c state->x[1] = t; return t + s; } ===xorshiftr+=== (r stands for reduced; reads "xorshifter plus") generator was mainly based on xorshift+ yet incorporates modifications making it significantly faster (especially on lightweight devices) and more successful in randomness tests (including TestU01 BigCrush suite) compared to its predecessors.[10] It is one of the fastest generators passing all tests in TestU01's BigCrush suite.[14] Like xorshift+, a native C implementation of a xorshiftr+ generator that passes all tests from the BigCrush suite can typically generate a random number in fewer than 10 clock cycles on x86, thanks to instruction pipelining.[10] Unlike , does not return the sum of two variables derived from the state using xorshift-style steps, rather it returns a single variable with the very last operation in its cycle; however, it features an addition just before returning a value, namely in the phase of adjusting the seed for the next cycle; hence the "+" in the name of the algorithm.[src] The variable sizes, including the state, can be increased with no compromise to the randomness scores, but performance drops may be observed on lightweight devices.[src] The following generator uses 128 bits of state (with two variables) and has a maximal period of 2 128 −1.[src] include typedef struct { uint64_t s[2]; // seeds } XorShiftR128PlusState; // The state must be seeded so that it is not all zero uint64_t xorshiftr128plus(XorShiftR128PlusState* state) { uint64_t x = state->s[0]; const uint64_t y = state->s[1]; state->s[0] = y; x ^= x > 17; // shift & xor x ^= y; // xor state->s[1] = x + y; return x; } ==xoshiro== xoshiro (short for "xor, shift, rotate") and xoroshiro (short for "xor, rotate, shift, rotate") use rotations in addition to shifts.[1] According to Vigna, they are faster and produce better quality output than xorshift.[4] This class of generator has variants for 32-bit and 64-bit integer and floating point output; for floating point, one takes the upper 53 bits (for binary64) or the upper 23 bits (for binary32), since the upper bits are of better quality than the lower bits in the floating point generators.[14] The algorithms also include a jump function, which sets the state forward by some number of steps – usually a power of two that allows many threads of execution to start at distinct initial states.[9] For 32-bit output, xoshiro128** and xoshiro128+ are exactly equivalent to xoshiro256** and xoshiro256+, with in place of , and with different shift/rotate constants.[src] More recently, the generators have been made as an alternative to the generators.[src] They are used in some implementations of Fortran compilers such as GNU Fortran, and in Java, and Julia.[src] xoshiro256++ is the family's general-purpose random 64-bit number generator.[9] // Adapted from the code included on Sebastiano Vigna's website include uint64_t rol64(uint64_t x, int k) { return (x > (64 - k)); } typedef struct { uint64_t s[4]; } Xoshiro256ppState; uint64_t xoshiro256pp(Xoshiro256ppState* state) { uint64_t* s = state->s; const uint64_t result = rol64(s[0] + s[3], 23) + s[0]; const uint64_t t = s[1] ===xoshiro256**=== xoshiro256** uses multiplication rather than addition in its output function.[4] It is worth noting, however, that the output function is invertible, allowing the underlying state to be trivially uncovered.[src] It is used in GNU Fortran compiler, Lua (as of Lua 5.4), and the .NET framework (as of .NET 6.0).[src] // Adapted from the code included on Sebastiano Vigna's website include uint64_t rol64(uint64_t x, int k) { return (x > (64 - k)); } typedef struct { uint64_t s[4]; } Xoshiro256ssState; uint64_t xoshiro256ss(Xoshiro256ssState* state) { uint64_t* s = state->s; const uint64_t result = rol64(s[1] * 5, 7) * 9; const uint64_t t = s[1] ===xoshiro256+=== xoshiro256+ is approximately 15% faster than xoshiro256**, but the lowest three bits have low linear complexity; therefore, it should be used only for floating point results by extracting the upper 53 bits.[17] include uint64_t rol64(uint64_t x, int k) { return (x > (64 - k)); } typedef struct { uint64_t s[4]; } Xoshiro256pState; uint64_t xoshiro256p(Xoshiro256pState* state) { uint64_t* s = state->s; const uint64_t result = s[0] + s[3]; const uint64_t t = s[1] ===xoroshiro=== If space is at a premium, xoroshiro128** and xoroshiro128+ are equivalent to xoshiro256** and xoshiro256+.[src] These have smaller state spaces, and thus are less useful for massively parallel programs.[src] xoroshiro128+ also exhibits a mild dependency in the population count, generating a failure after of output.[src] The authors do not believe that this can be detected in real world programs.[src] Instead of perpetuating Marsaglia's tradition of xorshift as a basic operation, xoroshiro128+ uses a shift/rotate-based linear transformation designed by Sebastiano Vigna in collaboration with David Blackman.[5] The result is a significant improvement in speed and statistical quality.[src] xoroshiro64** and xoroshiro64* are equivalent to xoroshiro128** and xoroshiro128+.[src] Unlike the xoshiro generators, they are not straightforward ports of their higher-precision counterparts.[8] NOTE: the parameters (a=24, b=16, c=37) of this version give slightly better results in our test than the 2016 version (a=55, b=14, c=36).[17] These claims about not passing tests can be confirmed by running PractRand on the input, resulting in output like that shown below: RNG_test using PractRand version 0.93 RNG = RNG_stdin64, seed = 0xfac83126 test set = normal, folding = standard (64 bit) rng=RNG_stdin64, seed=0xfac83126 length= 128 megabytes (2^27 bytes), time= 2.1 seconds Test Name Raw Processed Evaluation [Low1/64]BRank(12):256(2) R= +3748 p~= 3e-1129 FAIL !!!!!!!![14] [Low1/64]BRank(12):384(1) R= +5405 p~= 3e-1628 FAIL !!!!!!!![src] ...and 146 test result(s) without anomalies Acknowledging the authors go on to say: We suggest to use a sign test to extract a random Boolean value Thus, programmers should prefer the highest bits (e.g., making a heads/tails by writing random_number rather than random_number & 1 ).[17] The same test is failed by some instances of the Mersenne Twister and WELL.[17] The statistical problems extend far beyond the bottom few bits, because it fails the PractRand test even when truncated and fails multiple tests in BigCrush even when the bits are reversed.[17] ==Initialization== In the xoshiro paper, it is recommended to initialize the state of the generators using a generator which is radically different from the initialized generators, as well as one which will never give the "all-zero" state; for shift-register generators, this state is impossible to escape from.[14] The authors specifically recommend using the SplitMix64 generator, from a 64-bit seed.[src] A version of the SplitMix64 generator is used below.[src] include typedef struct { uint64_t s; } Mix64State; uint64_t mix64(Mix64State* state) { uint64_t result = (state->s += 0x9E3779B97F4A7C15); result = (result ^ (result >> 30)) * 0xBF58476D1CE4E5B9; result = (result ^ (result >> 27)) * 0x94D049BB133111EB; return result ^ (result >> 31); } typedef struct { uint32_t x[4]; } XorShift128State; // one could do the same for any of the other generators void xorshift128_init(XorShift128State* state, uint64_t seed) { Mix64State smstate = { seed }; uint64_t tmp = mix64(&smstate); state->x[0] = (uint32_t)tmp; state->x[1] = (uint32_t)(tmp >> 32); tmp = mix64(&smstate); state->x[2] = (uint32_t)tmp; state->x[3] = (uint32_t)(tmp >> 32); } ==Notes== ==References== ==Further reading== Lists generators of various sizes with four shifts (two per feedback word).[6] ==External links==[src]

94 sentences · 94 cited inline · 18 references stored

References

  1. They are a subset of linear-feedback shift registers (LFSRs) which allow a particularly efficient implementation in software without the excessive use of sparse polynomials. They generate the . · retrieved 2026-06-14 · rev 1359518587
    Cite this reference

    MLA "They are a subset of linear-feedback shift registers (LFSRs) which allow a particularly efficient implementation in software without the excessive use of sparse polynomials. They generate the ." They are a subset of linear-feedback shift registers (LFSRs) which allow a particularly efficient implementation in soft. 2026-06-14. https://en.wikipedia.org/w/index.php?oldid=1359518587. Accessed 04 December 2026.

    Chicago "They are a subset of linear-feedback shift registers (LFSRs) which allow a particularly efficient implementation in software without the excessive use of sparse polynomials. They generate the ." They are a subset of linear-feedback shift registers (LFSRs) which allow a particularly efficient implementation in soft. 2026-06-14. https://en.wikipedia.org/w/index.php?oldid=1359518587.

    APA They are a subset of linear-feedback shift registers (LFSRs) which allow a particularly efficient implementation in soft. (2026). They are a subset of linear-feedback shift registers (LFSRs) which allow a particularly efficient implementation in software without the excessive use of sparse polynomials. They generate the . Retrieved December 4, 2026, from https://en.wikipedia.org/w/index.php?oldid=1359518587

  2. Panneton, François. On the xorshift random number generators . · retrieved 2026-06-14 · rev 1359518587
    Cite this reference

    MLA "Panneton, François. On the xorshift random number generators ." Panneton, François. 2026-06-14. https://en.wikipedia.org/w/index.php?oldid=1359518587. Accessed 04 December 2026.

    Chicago "Panneton, François. On the xorshift random number generators ." Panneton, François. 2026-06-14. https://en.wikipedia.org/w/index.php?oldid=1359518587.

    APA Panneton, François. (2026). Panneton, François. On the xorshift random number generators . Retrieved December 4, 2026, from https://en.wikipedia.org/w/index.php?oldid=1359518587

  3. Cite book | last1=Press | first1=WH | author-link1=William H. Press | last2=Teukolsky | first2=SA |author-link2=Saul Teukolsky | last3=Vetterling | first3=WT | last4=Flannery | first4=BP | year=2007 . · retrieved 2026-06-14 · rev 1359518587
    Cite this reference

    MLA "Cite book | last1=Press | first1=WH | author-link1=William H. Press | last2=Teukolsky | first2=SA |author-link2=Saul Teukolsky | last3=Vetterling | first3=WT | last4=Flannery | first4=BP | year=2007 ." Cite book | last1=Press | first1=WH | author-link1=William H. 2026-06-14. https://en.wikipedia.org/w/index.php?oldid=1359518587. Accessed 04 December 2026.

    Chicago "Cite book | last1=Press | first1=WH | author-link1=William H. Press | last2=Teukolsky | first2=SA |author-link2=Saul Teukolsky | last3=Vetterling | first3=WT | last4=Flannery | first4=BP | year=2007 ." Cite book | last1=Press | first1=WH | author-link1=William H. 2026-06-14. https://en.wikipedia.org/w/index.php?oldid=1359518587.

    APA Cite book | last1=Press | first1=WH | author-link1=William H. (2026). Cite book | last1=Press | first1=WH | author-link1=William H. Press | last2=Teukolsky | first2=SA |author-link2=Saul Teukolsky | last3=Vetterling | first3=WT | last4=Flannery | first4=BP | year=2007 . Retrieved December 4, 2026, from https://en.wikipedia.org/w/index.php?oldid=1359518587

  4. Vigna, Sebastiano. xorshift*/xorshift+ generators and the PRNG shootout . retrieved 2014-10-25 · retrieved 2014-10-24 · rev 1359518587
    Cite this reference

    MLA "Vigna, Sebastiano. xorshift*/xorshift+ generators and the PRNG shootout . retrieved 2014-10-25." Vigna, Sebastiano. 2014-10-24. https://en.wikipedia.org/w/index.php?oldid=1359518587. Accessed 04 December 2026.

    Chicago "Vigna, Sebastiano. xorshift*/xorshift+ generators and the PRNG shootout . retrieved 2014-10-25." Vigna, Sebastiano. 2014-10-24. https://en.wikipedia.org/w/index.php?oldid=1359518587.

    APA Vigna, Sebastiano. (2014). Vigna, Sebastiano. xorshift*/xorshift+ generators and the PRNG shootout . retrieved 2014-10-25. Retrieved December 4, 2026, from https://en.wikipedia.org/w/index.php?oldid=1359518587

  5. Vigna, Sebastiano. An experimental exploration of Marsaglia's xorshift generators, scrambled . · retrieved 2026-06-14 · rev 1359518587
    Cite this reference

    MLA "Vigna, Sebastiano. An experimental exploration of Marsaglia's xorshift generators, scrambled ." Vigna, Sebastiano. 2026-06-14. https://en.wikipedia.org/w/index.php?oldid=1359518587. Accessed 04 December 2026.

    Chicago "Vigna, Sebastiano. An experimental exploration of Marsaglia's xorshift generators, scrambled ." Vigna, Sebastiano. 2026-06-14. https://en.wikipedia.org/w/index.php?oldid=1359518587.

    APA Vigna, Sebastiano. (2026). Vigna, Sebastiano. An experimental exploration of Marsaglia's xorshift generators, scrambled . Retrieved December 4, 2026, from https://en.wikipedia.org/w/index.php?oldid=1359518587

  6. Vigna, Sebastiano. Further scramblings of Marsaglia's xorshift generators . M. · retrieved 2026-06-14 · rev 1359518587
    Cite this reference

    MLA "Vigna, Sebastiano. Further scramblings of Marsaglia's xorshift generators . M." Vigna, Sebastiano. 2026-06-14. https://en.wikipedia.org/w/index.php?oldid=1359518587. Accessed 04 December 2026.

    Chicago "Vigna, Sebastiano. Further scramblings of Marsaglia's xorshift generators . M." Vigna, Sebastiano. 2026-06-14. https://en.wikipedia.org/w/index.php?oldid=1359518587.

    APA Vigna, Sebastiano. (2026). Vigna, Sebastiano. Further scramblings of Marsaglia's xorshift generators . M. Retrieved December 4, 2026, from https://en.wikipedia.org/w/index.php?oldid=1359518587

  7. Saito, Mutsuo. XORSHIFT-ADD (XSadd): A variant of XORSHIFT . 2014. · retrieved 2026-06-14 · rev 1359518587
    Cite this reference

    MLA "Saito, Mutsuo. XORSHIFT-ADD (XSadd): A variant of XORSHIFT . 2014." Saito, Mutsuo. 2026-06-14. https://en.wikipedia.org/w/index.php?oldid=1359518587. Accessed 04 December 2026.

    Chicago "Saito, Mutsuo. XORSHIFT-ADD (XSadd): A variant of XORSHIFT . 2014." Saito, Mutsuo. 2026-06-14. https://en.wikipedia.org/w/index.php?oldid=1359518587.

    APA Saito, Mutsuo. (2026). Saito, Mutsuo. XORSHIFT-ADD (XSadd): A variant of XORSHIFT . 2014. Retrieved December 4, 2026, from https://en.wikipedia.org/w/index.php?oldid=1359518587

  8. Vigna, Sebastiano. xoshiro/xoroshiro generators and the PRNG shootout . retrieved 2019-07-07 · retrieved 2019-07-06 · rev 1359518587
    Cite this reference

    MLA "Vigna, Sebastiano. xoshiro/xoroshiro generators and the PRNG shootout . retrieved 2019-07-07." Vigna, Sebastiano. 2019-07-06. https://en.wikipedia.org/w/index.php?oldid=1359518587. Accessed 04 December 2026.

    Chicago "Vigna, Sebastiano. xoshiro/xoroshiro generators and the PRNG shootout . retrieved 2019-07-07." Vigna, Sebastiano. 2019-07-06. https://en.wikipedia.org/w/index.php?oldid=1359518587.

    APA Vigna, Sebastiano. (2019). Vigna, Sebastiano. xoshiro/xoroshiro generators and the PRNG shootout . retrieved 2019-07-07. Retrieved December 4, 2026, from https://en.wikipedia.org/w/index.php?oldid=1359518587

  9. O'Neill, Melissa E. PCG: A Family of Simple Fast Space-Efficient Statistically Good Algorithms for Random Number Generation . Harvey Mudd College . · retrieved 2026-06-14 · rev 1359518587
    Cite this reference

    MLA "O'Neill, Melissa E. PCG: A Family of Simple Fast Space-Efficient Statistically Good Algorithms for Random Number Generation . Harvey Mudd College ." O'Neill, Melissa E. 2026-06-14. https://en.wikipedia.org/w/index.php?oldid=1359518587. Accessed 04 December 2026.

    Chicago "O'Neill, Melissa E. PCG: A Family of Simple Fast Space-Efficient Statistically Good Algorithms for Random Number Generation . Harvey Mudd College ." O'Neill, Melissa E. 2026-06-14. https://en.wikipedia.org/w/index.php?oldid=1359518587.

    APA O'Neill, Melissa E. (2026). O'Neill, Melissa E. PCG: A Family of Simple Fast Space-Efficient Statistically Good Algorithms for Random Number Generation . Harvey Mudd College . Retrieved December 4, 2026, from https://en.wikipedia.org/w/index.php?oldid=1359518587

  10. A random number generator for lightweight authentication protocols: xorshiftR+ . · retrieved 2026-06-14 · rev 1359518587
    Cite this reference

    MLA "A random number generator for lightweight authentication protocols: xorshiftR+ ." 2026-06-14. https://en.wikipedia.org/w/index.php?oldid=1359518587. Accessed 04 December 2026.

    Chicago "A random number generator for lightweight authentication protocols: xorshiftR+ ." 2026-06-14. https://en.wikipedia.org/w/index.php?oldid=1359518587.

    APA encyclopegia.org. (2026). A random number generator for lightweight authentication protocols: xorshiftR+ . Retrieved December 4, 2026, from https://en.wikipedia.org/w/index.php?oldid=1359518587

  11. ISO/IEC 60559:2020 . · retrieved 2026-06-14 · rev 1359518587
    Cite this reference

    MLA "ISO/IEC 60559:2020 ." 2026-06-14. https://en.wikipedia.org/w/index.php?oldid=1359518587. Accessed 04 December 2026.

    Chicago "ISO/IEC 60559:2020 ." 2026-06-14. https://en.wikipedia.org/w/index.php?oldid=1359518587.

    APA encyclopegia.org. (2026). ISO/IEC 60559:2020 . Retrieved December 4, 2026, from https://en.wikipedia.org/w/index.php?oldid=1359518587

  12. Le, Fabien. XORWOW L'ecuyer TestU01 Results . Chase The Devil (blog) . 12 January 2011. · retrieved 2026-06-14 · rev 1359518587
    Cite this reference

    MLA "Le, Fabien. XORWOW L'ecuyer TestU01 Results . Chase The Devil (blog) . 12 January 2011." Le, Fabien. 2026-06-14. https://en.wikipedia.org/w/index.php?oldid=1359518587. Accessed 04 December 2026.

    Chicago "Le, Fabien. XORWOW L'ecuyer TestU01 Results . Chase The Devil (blog) . 12 January 2011." Le, Fabien. 2026-06-14. https://en.wikipedia.org/w/index.php?oldid=1359518587.

    APA Le, Fabien. (2026). Le, Fabien. XORWOW L'ecuyer TestU01 Results . Chase The Devil (blog) . 12 January 2011. Retrieved December 4, 2026, from https://en.wikipedia.org/w/index.php?oldid=1359518587

  13. cuRAND Testing . Nvidia . retrieved 2017-11-02 · retrieved 2017-11-01 · rev 1359518587
    Cite this reference

    MLA "cuRAND Testing . Nvidia . retrieved 2017-11-02." cuRAND Testing. 2017-11-01. https://en.wikipedia.org/w/index.php?oldid=1359518587. Accessed 04 December 2026.

    Chicago "cuRAND Testing . Nvidia . retrieved 2017-11-02." cuRAND Testing. 2017-11-01. https://en.wikipedia.org/w/index.php?oldid=1359518587.

    APA cuRAND Testing. (2017). cuRAND Testing . Nvidia . retrieved 2017-11-02. Retrieved December 4, 2026, from https://en.wikipedia.org/w/index.php?oldid=1359518587

  14. All em|xorshift* generators emit a sequence of values that is equidistributed in the maximum possible dimension (except that they will never output zero for 16 calls, i.e. 128 bytes, in a row) . · retrieved 2026-06-14 · rev 1359518587
    Cite this reference

    MLA "All em|xorshift* generators emit a sequence of values that is equidistributed in the maximum possible dimension (except that they will never output zero for 16 calls, i.e. 128 bytes, in a row) ." All em|xorshift* generators emit a sequence of values that is equidistributed in the maximum possible dimension (except. 2026-06-14. https://en.wikipedia.org/w/index.php?oldid=1359518587. Accessed 04 December 2026.

    Chicago "All em|xorshift* generators emit a sequence of values that is equidistributed in the maximum possible dimension (except that they will never output zero for 16 calls, i.e. 128 bytes, in a row) ." All em|xorshift* generators emit a sequence of values that is equidistributed in the maximum possible dimension (except. 2026-06-14. https://en.wikipedia.org/w/index.php?oldid=1359518587.

    APA All em|xorshift* generators emit a sequence of values that is equidistributed in the maximum possible dimension (except. (2026). All em|xorshift* generators emit a sequence of values that is equidistributed in the maximum possible dimension (except that they will never output zero for 16 calls, i.e. 128 bytes, in a row) . Retrieved December 4, 2026, from https://en.wikipedia.org/w/index.php?oldid=1359518587

  15. A Quick Look at Xoshiro256** . · retrieved 2026-06-14 · rev 1359518587
    Cite this reference

    MLA "A Quick Look at Xoshiro256** ." 2026-06-14. https://en.wikipedia.org/w/index.php?oldid=1359518587. Accessed 04 December 2026.

    Chicago "A Quick Look at Xoshiro256** ." 2026-06-14. https://en.wikipedia.org/w/index.php?oldid=1359518587.

    APA encyclopegia.org. (2026). A Quick Look at Xoshiro256** . Retrieved December 4, 2026, from https://en.wikipedia.org/w/index.php?oldid=1359518587

  16. Original C source code implementation of xoroshiro128+ . · retrieved 2026-06-14 · rev 1359518587
    Cite this reference

    MLA "Original C source code implementation of xoroshiro128+ ." 2026-06-14. https://en.wikipedia.org/w/index.php?oldid=1359518587. Accessed 04 December 2026.

    Chicago "Original C source code implementation of xoroshiro128+ ." 2026-06-14. https://en.wikipedia.org/w/index.php?oldid=1359518587.

    APA encyclopegia.org. (2026). Original C source code implementation of xoroshiro128+ . Retrieved December 4, 2026, from https://en.wikipedia.org/w/index.php?oldid=1359518587

  17. Thus, programmers should prefer the highest bits (e.g., making a heads/tails by writing random_number rather than random_number & 1 ). The same test is failed by some instances of the Mersenne Twist . · retrieved 2026-06-14 · rev 1359518587
    Cite this reference

    MLA "Thus, programmers should prefer the highest bits (e.g., making a heads/tails by writing random_number rather than random_number & 1 ). The same test is failed by some instances of the Mersenne Twist ." Thus, programmers should prefer the highest bits (e. 2026-06-14. https://en.wikipedia.org/w/index.php?oldid=1359518587. Accessed 04 December 2026.

    Chicago "Thus, programmers should prefer the highest bits (e.g., making a heads/tails by writing random_number rather than random_number & 1 ). The same test is failed by some instances of the Mersenne Twist ." Thus, programmers should prefer the highest bits (e. 2026-06-14. https://en.wikipedia.org/w/index.php?oldid=1359518587.

    APA Thus, programmers should prefer the highest bits (e. (2026). Thus, programmers should prefer the highest bits (e.g., making a heads/tails by writing random_number rather than random_number & 1 ). The same test is failed by some instances of the Mersenne Twist . Retrieved December 4, 2026, from https://en.wikipedia.org/w/index.php?oldid=1359518587

  18. The Xorshift128+ random number generator fails BigCrush . · retrieved 2026-06-14 · rev 1359518587
    Cite this reference

    MLA "The Xorshift128+ random number generator fails BigCrush ." 2026-06-14. https://en.wikipedia.org/w/index.php?oldid=1359518587. Accessed 04 December 2026.

    Chicago "The Xorshift128+ random number generator fails BigCrush ." 2026-06-14. https://en.wikipedia.org/w/index.php?oldid=1359518587.

    APA encyclopegia.org. (2026). The Xorshift128+ random number generator fails BigCrush . Retrieved December 4, 2026, from https://en.wikipedia.org/w/index.php?oldid=1359518587

Cite this article

MLA

"Xorshift." encyclopegia.org, 2026, https://encyclopegia.org/wiki/xorshift. Accessed 04 December 2026.

Chicago

"Xorshift." encyclopegia.org. Accessed December 4, 2026. https://encyclopegia.org/wiki/xorshift.

APA

encyclopegia.org. (2026). Xorshift. Retrieved December 4, 2026, from https://encyclopegia.org/wiki/xorshift

Accessed December 4, 2026 · CC BY-SA 4.0 · citation page · JSON

CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1359518587 · 0.5 · snapshot enwiki-001359518587

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.