60 unsigned int r1 = ranlux_get();
61 unsigned int r2 = ranlux_get();
62 unsigned int r3 = ranlux_get();
63 unsigned int r4 = ranlux_get();
66 ref[0] = r1+((r4 & 0x00ff0000) << 8);
67 ref[1] = r2+((r4 & 0x0000ff00) << 16);
68 ref[2] = r3+((r4 & 0x000000ff) << 24);
76 return (
ref[0]==0) && (
ref[1]==0) && (
ref[2]==0);
82 return (
ref[0]!=0) || (
ref[1]!=0) || (
ref[2]!=0);
references used for checksums.
Creference operator+(const Creference &r)
addition of reference
bool is_empty()
test emptyness
Creference & operator=(const Creference &r)
assignment of reference
Creference()
default constructor
void randomize()
create a random reference
Creference & operator+=(const Creference &r)
incrementation of reference
bool not_empty()
test non-emptyness
Creference & operator-=(const Creference &r)
decrementation of reference
unsigned int ref[3]
actual data for the reference