Last change
on this file was
e16e8f2,
checked in by Edwin Eefting <edwin@datux.nl>, 3 years ago
|
bootstuff
|
-
Property mode set to
100644
|
File size:
353 bytes
|
Line | |
---|
1 | /* |
---|
2 | * seed48.c |
---|
3 | */ |
---|
4 | |
---|
5 | #include <stdlib.h> |
---|
6 | #include <stdint.h> |
---|
7 | #include <string.h> |
---|
8 | |
---|
9 | extern unsigned short __rand48_seed[3]; |
---|
10 | |
---|
11 | unsigned short *seed48(const unsigned short xsubi[3]) |
---|
12 | { |
---|
13 | static unsigned short oldseed[3]; |
---|
14 | memcpy(oldseed, __rand48_seed, sizeof __rand48_seed); |
---|
15 | memcpy(__rand48_seed, xsubi, sizeof __rand48_seed); |
---|
16 | |
---|
17 | return oldseed; |
---|
18 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.