Improve acquisition of random numbers

Signed-off-by: Jorge Ruesga <jorge@ruesga.com>