projects
/
unix-history
/ blame
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blob
|
blame
(incremental) |
history
|
HEAD
Bell 32V development
[unix-history]
/
usr
/
src
/
libc
/
gen
/
rand.c
Commit
Line
Data
baaa5679
TL
1
static long randx = 1;
2
3
srand(x)
4
unsigned x;
5
{
6
randx = x;
7
}
8
9
rand()
10
{
11
return((randx = randx * 1103515245 + 12345) & 0x7fffffff);
12
}