projects
/
unix-history
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
date and time created 80/12/21 16:40:01 by wnj
[unix-history]
/
usr
/
src
/
lib
/
libc
/
stdlib
/
rand.c
/* @(#)rand.c 4.1 (Berkeley) %G% */
static long
randx
=
1
;
srand
(
x
)
unsigned
x
;
{
randx
=
x
;
}
rand
()
{
return
((
randx
=
randx
*
1103515245
+
12345
) &
0x7fffffff
);
}