Select random number generator at configure

Right now we only have one way of getting random numbers generated, but
it should still be possible to select the type of random number
generation in preparedness for when other methods are added. Make it
possible to select a method with the --with-random option.

Signed-off-by: Marcus Karlsson <mk@acc.umu.se>