Fix a random seed of zero being ignored

This was caused by zero being interpreted as false.
Hurray loose typing! Hurray Javascript! :D
Merge pull request #71539 from theinternetftw/fix-zero-seed-not-seeding

Fixes a random seed of zero being ignored