random_int() availability
- On Linux, the » getrandom(2) syscall will be used if available.
- On other platforms, /dev/urandom will be used.
- If none of the aforementioned sources are available, then an Exception will be thrown.
From: https://secure.php.net/manual/en/function.random-int.php
I'm not sure if things like syscalls and access to /dev/urandom
are available on shared hosted servers.
Maybe a fallback should be added?