Merge pull request #3537 from piotr-now/platform_random

Expanded the random number generator in the `platform_util.c` file