[BACK]Return to srand48.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libc / stdlib

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/lib/libc/stdlib/srand48.c between version 1.4 and 1.5

version 1.4, 1998/01/09 03:15:41 version 1.5, 1998/11/15 17:13:52
Line 25  srand48(long seed)
Line 25  srand48(long seed)
 {  {
         __rand48_seed[0] = RAND48_SEED_0;          __rand48_seed[0] = RAND48_SEED_0;
         __rand48_seed[1] = (unsigned short) seed;          __rand48_seed[1] = (unsigned short) seed;
         __rand48_seed[2] = (unsigned short) (seed >> 16);          __rand48_seed[2] = (unsigned short) ((unsigned long)seed >> 16);
         __rand48_mult[0] = RAND48_MULT_0;          __rand48_mult[0] = RAND48_MULT_0;
         __rand48_mult[1] = RAND48_MULT_1;          __rand48_mult[1] = RAND48_MULT_1;
         __rand48_mult[2] = RAND48_MULT_2;          __rand48_mult[2] = RAND48_MULT_2;

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

CVSweb <webmaster@jp.NetBSD.org>