Searched refs:prng_state (Results 1 – 3 of 3) sorted by relevance
35 prng_state = 123437 prng_state = ((1103515245 * prng_state) + 12345) % (1 << 31)38 if prng_state & 0xFF != b:
147 static uint32_t prng_state = 1234; in test_modem_ppp_prng_random() local150 prng_state = 1234; in test_modem_ppp_prng_random()153 prng_state = (1103515245 * prng_state + 12345) % (1 << 31); in test_modem_ppp_prng_random()154 return (uint8_t)(prng_state & 0xFF); in test_modem_ppp_prng_random()
36 static uint32_t prng_state = 1234; in sample_prng_random() local38 prng_state = ((1103515245 * prng_state) + 12345) % (1U << 31); in sample_prng_random()39 return (uint8_t)(prng_state & 0xFF); in sample_prng_random()