18 #ifndef FOEDUS_ASSORTED_UNIFORM_RANDOM_HPP_
19 #define FOEDUS_ASSORTED_UNIFORM_RANDOM_HPP_
71 uint32_t C = get_c(A);
107 seed_ = seed_ * 0xD04C3175 + 0x53DA9022;
108 return (seed_ >> 32) ^ (seed_ & 0xFFFFFFFF);
120 uint32_t get_c(uint32_t A)
const {
122 const uint64_t kCSeed = 0x734b00c6d7d3bbdaULL;
123 return kCSeed % (A + 1);
130 #endif // FOEDUS_ASSORTED_UNIFORM_RANDOM_HPP_
Root package of FOEDUS (Fast Optimistic Engine for Data Unification Services).
Forward declarations of classes in memory package.
Represents one memory block aligned to actual OS/hardware pages.
#define ASSERT_ND(x)
A warning-free wrapper macro of assert() that has no performance effect in release mode even when 'x'...