mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-13 07:45:26 +00:00
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…
x
Reference in New Issue
Block a user