Update call to srand48 to match prototype.

This commit is contained in:
Gregory Burd 2007-10-21 01:31:56 +01:00
parent d55ee94646
commit 2529f39db1
3 changed files with 3 additions and 3 deletions

View file

@ -1057,7 +1057,7 @@ void __change_schema_signature(dbp, v)
static int first_time = 1;
if (first_time) {
first_time = 0;
srand48_r(&rand);
srand48_r(1, &rand); /* XXX create a portable rand function */
}
if (dbp->next_sig == dbp->aDb[0].schema_sig) {
u_int8_t n;

View file

@ -356,7 +356,7 @@ __random_func(context, argc, argv)
static int first_time = 1;
if (first_time) {
first_time = 0;
srand48_r(&rand);
srand48_r(1, &rand); /* XXX create a portable rand function */
}
rand32_r(&rand, &n);
dbsql_set_result_int(context, n);

View file

@ -2947,7 +2947,7 @@ case OP_NewRecno: {
static int first_time = 1;
if (first_time) {
first_time = 0;
srand48_r(&rand);
srand48_r(1, &rand); /* XXX create a portable rand function */
}
int i = pOp->p1;
u_int32_t v = 0;