Added RNG support for non-Linux/BSD systems

As stated in issue #4, the CPRNG cannot seed automatically on non-Linux/BSD systems, as there's no /dev/random nor /dev/urandom.
I fixed this by using rand() in case of no random device being available.