<tt>xoshiro
Loading...
Searching...
No Matches
xso::plus< w0, w1 >

The plus scrambler is passed a state array an returns state[w0] + state[w1]. More...

#include <xoshiro.h>

Detailed Description

template<std::size_t w0 = 0, std::size_t w1 = 1>
struct xso::plus< w0, w1 >

The plus scrambler is passed a state array an returns state[w0] + state[w1].

Template Parameters
w0The index of the first word in the state array to use.
w1The index of the second word in the state array to use.

For this scrambler, any choice of w0 and w1 will do as all the words are getting updated by the state advance algorithm.