[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.1 and 1.2

version 1.1, 1993/10/07 19:53:46 version 1.2, 1993/10/14 00:34:23
Line 13 
Line 13 
   
 #include "rand48.h"  #include "rand48.h"
   
 extern unsigned short _rand48_seed[3];  extern unsigned short __rand48_seed[3];
 extern unsigned short _rand48_mult[3];  extern unsigned short __rand48_mult[3];
 extern unsigned short _rand48_add;  extern unsigned short __rand48_add;
   
 void  void
 srand48(long seed)  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) (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;
         _rand48_add = RAND48_ADD;          __rand48_add = RAND48_ADD;
 }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

CVSweb <webmaster@jp.NetBSD.org>