A fixed pseudo-random sequence: the same texts on every run and platform. */
| 527 | |
| 528 | /* A fixed pseudo-random sequence: the same texts on every run and platform. */ |
| 529 | static uint32_t go_rand(uint32_t *state) { |
| 530 | *state = (*state * 1664525U) + 1013904223U; |
| 531 | return *state >> 8; |
| 532 | } |
| 533 | |
| 534 | /* Append one of `count` pieces, chosen by the sequence. */ |
| 535 | static size_t go_rand_piece(char *buf, size_t len, size_t cap, uint32_t *state, |
no outgoing calls
no test coverage detected