1 // SPDX-License-Identifier: GPL-2.0+
4 * see http://www.jstatsoft.org/v08/i14/paper
6 * Copyright (c) 2012 Michael Walle
7 * Michael Walle <michael@walle.cc>
12 static unsigned int y = 1U;
14 unsigned int rand_r(unsigned int *seedp)
16 *seedp ^= (*seedp << 13);
17 *seedp ^= (*seedp >> 17);
18 *seedp ^= (*seedp << 5);
23 unsigned int rand(void)
28 void srand(unsigned int seed)