1
0
mirror of https://github.com/signalwire/freeswitch.git synced 2025-04-18 17:41:53 +00:00

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 a8d53fdd79
commit f645326e74

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