Home | History | Annotate | Download | only in src

Lines Matching full:state

118 static uint32_t random_base(random_state *state) {
123 if (state->hi == 0) state->hi = random_seed();
124 if (state->lo == 0) state->lo = random_seed();
127 state->hi = 36969 * (state->hi & 0xFFFF) + (state->hi >> 16);
128 state->lo = 18273 * (state->lo & 0xFFFF) + (state->lo >> 16);
129 return (state->hi << 16) + (state->lo & 0xFFFF);
137 static random_state state = {0, 0};
138 return random_base(&state);
143 // purposes. So, we keep a different state to prevent informations
148 static random_state state = {0, 0};
149 return random_base(&state);