FS-9978: [mod_expr] mod_expr random seed function not working for Windows #resolve
This commit is contained in:
parent
783b95d596
commit
0c3ba1e378
|
@ -496,9 +496,10 @@ case EXPR_NODEFUNC_RANDOMIZE:
|
|||
{
|
||||
static int curcall = 0;
|
||||
|
||||
curcall++;
|
||||
curcall += clock() + time(NULL);
|
||||
curcall = curcall * 31821U + 13849U;
|
||||
|
||||
*(nodes->data.function.refs[0]) = (EXPRTYPE) ((clock() + 1024 + curcall) * time(NULL));
|
||||
*(nodes->data.function.refs[0]) = (EXPRTYPE) curcall;
|
||||
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue