* some SDL functions from SDL1.x and SDL2.x
srand() & simple rand() supporing seed
use js variable for rand_seed
Revert "use js variable for rand_seed"

This reverts commit 3e31f83ac762e34b266b7888aec161bb2b843dd1.
fix rand_r; add rand_r in test_rand
Fix assertion that all switch-cases break.
check correct define for UDP mode
minor fixes related to UDP mode
better error message on errors in CRUNCH
add testcase for i96 shifts
remove obsolete sig param to sign/unSign
improve i96 test
add legalizer_b testcase
enable test_bigswitch in asm
Merge pull request #2077 from inolen/enable_udp

enable UDP tests in socket tests
make emlink.py executable
don't leak streams in readFile and writeFile
don't invoke multiple callbacks when idbfs sync errors
added canOwn option to writeFile
updated idbfs sync to specify canOwn when writing to the local fs
reworked idbfs sync to use an index with openKeyCursor to avoid deserializing all values when getting the set members
improve fuzzing setup
add fuzz testcase
fix exceptions whitelist check on invoke using function pointer; fixes #2081
Merge branch 'rand' of github.com:coolwanglu/emscripten into incoming