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); |