Update call to srand48 to match prototype.
This commit is contained in:
parent
d55ee94646
commit
2529f39db1
3 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue