repo.or.cz
/
syslinux-debian
/
hramrach.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Adding upstream version 3.50~pre5.
[syslinux-debian/hramrach.git]
/
com32
/
lib
/
srand48.c
blob
a3df16d95c002fc906886db9175960c61383cef8
1
/*
2
* srand48.c
3
*/
4
5
#include <stdlib.h>
6
#include <stdint.h>
7
8
extern
unsigned short
__rand48_seed
[
3
];
9
10
11
void
srand48
(
long
seedval
)
12
{
13
__rand48_seed
[
0
] =
0x330e
;
14
__rand48_seed
[
1
] = (
unsigned short
)
seedval
;
15
__rand48_seed
[
2
] = (
unsigned short
)((
uint32_t
)
seedval
>>
16
);
16
}