[BACK]Return to oxmisc.c CVS log [TXT][DIR] Up to [local] / OpenXM / src / kan96xx / plugin

Diff for /OpenXM/src/kan96xx/plugin/oxmisc.c between version 1.2 and 1.3

version 1.2, 1999/10/30 02:22:16 version 1.3, 1999/11/03 08:29:40
Line 852  int oxRemovePortFile(void) {
Line 852  int oxRemovePortFile(void) {
 }  }
   
 char *oxGenPass(void) {  char *oxGenPass(void) {
   int seed;    static int seed = 0;
   long p;    long p;
   char *s;    char *s;
   seed = (int) time(NULL);    int i;
   srandom((unsigned int) seed);    if (seed == 0) {
       seed = (int) time(NULL) + (int) &p;
       srandom((unsigned int) seed);
     }
     for (i=0; i < ((int) &p) % 100 ; i++) random();
   p = random();    p = random();
   s = (char *)malloc(128*sizeof(char));    s = (char *)malloc(128*sizeof(char));
   sprintf(s,"%ld",p);    sprintf(s,"%ld",p);

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>