# | Line 1 | Line 1 | |
---|---|---|
1 | < | /* Copyright (c) 1998 Silicon Graphics, Inc. */ |
1 | > | /* Copyright (c) 1999 Silicon Graphics, Inc. */ |
2 | ||
3 | /* SCCSid "$SunId$ SGI" */ | |
4 | ||
# | Line 11 | Line 11 | |
11 | #ifdef MSDOS | |
12 | ||
13 | #define random() ((long)rand()<<16^(long)rand()<<6^(long)rand()>>4) | |
14 | + | #define srandom(s) srand((unsigned)(s)) |
15 | ||
16 | #define frandom() (rand()*(1./32768.)) | |
17 | ||
# | Line 27 | Line 28 | extern long lrand48(); | |
28 | extern double drand48(); | |
29 | ||
30 | #define random() lrand48() | |
31 | + | #define srandom(s) srand48((long)(s)) |
32 | #define frandom() drand48() | |
33 | ||
34 | #endif |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |