use cross-platform random seed function
Merge pull request #1 from poundifdef/fix_random_seed

use cross-platform random seed function