With an application running in a Linux virtual machine:
/dev/random
In Unix and Linux operating systems, /dev/random
and /dev/urandom
are special files that serve as random number generators. They allow access to environmental noise collected from device drivers and other sources. Inside a virtual machine environment, these devices exhaust their pool of random bits much more quickly than in a physical environment because hardware events are less common in a virtual machine.
To resolve this issue, either:
/dev/urandom
instead of /dev/random
/dev/random
with a symbolic link to /dev/urandom
To replace /dev/random
with a symbolic link to /dev/urandom
:
/dev/random
with this command:mv /dev/random /dev/random.orig
/dev/random
to /dev/urandom
with this command:ln -s /dev/urandom /dev/random