Pacify MSVC warnings for random.c
Merge pull request #2232 from kyab/fix_msvc_warning_random.c

Pacify MSVC warnings for random.c