added support for getentropy()
fixes in the usage of /dev/urandom
call srandom() once, and use random() everywhere
Merge pull request #22 from nmav/urandom

cleanup the random generation function usage