Welcome to mirror list, hosted at ThFree Co, Russian Federation.

rand_r.c « stdlib « libc « newlib - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 25307275fa2c0172abe9c966e16f8109ba88001a (plain)
1
2
3
4
5
6
7
#include <stdlib.h>

int
_DEFUN (rand_r, (seed), unsigned int *seed)
{
        return (((*seed) = (*seed) * 1103515245 + 12345) & RAND_MAX);
}