11 #include "../include/pv_types.h" 16 #define CL_RANDOM_MAX UINT_MAX 28 int cl_random_init(
taus_uint4 *state,
size_t count,
unsigned int seed);
30 static inline double cl_random_max() {
return (
double)CL_RANDOM_MAX; }
32 static inline float cl_random_prob(
taus_uint4 state) {
33 return (
float)((float)state.s0 / (
float)4294967296.0);