[FS-9978] mod_expr random seed function not working for Windows Created: 25/Jan/17  Updated: 25/Jan/17  Resolved: 25/Jan/17

Status: Resolved
Project: FreeSWITCH
Component/s: mod_expr
Affects Version/s: 1.6, 1.8, 1.9
Fix Version/s: None
Security Level: public

Type: Bug Priority: Minor
Reporter: Anthony Minessale II Assignee: Anthony Minessale II
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

CPU Architecture:
x86-64
Kernel:
Linux
Userland:
GNU/Linux
Distribution:
Debian
Distribution Version:
Debian 8 jessie
Compiler:
gcc
FreeSWITCH GIT Revision: 1918f29671e9f3d510b7314c12f344bed83ec521
GIT Master Revision hash:: 1918f29671e9f3d510b7314c12f344bed83ec521

 Description   
The randomize() function in mod_expr on the Windows platform does not have enough entropy.
The patch fixes the seeding to be more disperate allowing the overflow logic to properly generate differing values on subsequent calls.
NOTE: This expr library uses VERY weak random number generation techniques and should not be used for anything secure.


Generated at Thu Mar 30 19:32:22 CDT 2017 using JIRA 7.3.3#73014-sha1:d5be8da522213be2ca9ad7b043c51da6e4cc9754.