25 #include <stm/config.h>
39 #if defined(STM_API_CXXTM)
45 unsigned int next = *
seed;
50 result = (
unsigned int) (next / 65536) % 2048;
55 result ^= (
unsigned int) (next / 65536) % 1024;
60 result ^= (
unsigned int) (next / 65536) % 1024;
67 #if defined(STM_API_CXXTM)
73 unsigned int next = *
seed;
78 result = (
unsigned int) (next / 65536) % 2048;
83 result ^= (
unsigned int) (next / 65536) % 1024;
88 result ^= (
unsigned int) (next / 65536) % 1024;
95 #endif // RAND_R_32_H__
static int seed
Definition: mesh.cpp:40
int rand_r_32(unsigned int *seed)
Definition: rand_r_32.h:43