mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-03 04:50:23 +08:00
8 lines
143 B
C
8 lines
143 B
C
#include <stdlib.h>
|
|
|
|
int
|
|
_DEFUN (rand_r, (seed), unsigned int *seed)
|
|
{
|
|
return (((*seed) = (*seed) * 1103515245 + 12345) & RAND_MAX);
|
|
}
|