projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
more fmemopen null termination fixes
[oweals/musl.git]
/
src
/
prng
/
rand_r.c
1
#include <stdlib.h>
2
3
int rand_r(unsigned *seed)
4
{
5
return (*seed = *seed * 1103515245 + 12345) & 0x7fffffff;
6
}