FS-9978: [mod_expr] mod_expr random seed function not working for Windows #resolve

This commit is contained in:
Anthony Minessale 2017-01-25 12:48:01 -06:00
parent 783b95d596
commit 0c3ba1e378
1 changed files with 3 additions and 2 deletions

View File

@ -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;
}