From 1ac267bb7dd678fa12bb3573c29cff5238ef9ccf Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Wed, 31 May 2006 20:29:00 +0200 Subject: [PATCH] [PATCH] Use /dev/urandom instead of /dev/random We are not cryptographic software, and with many threads it's actually possible to run out of entropy. --- fio-ini.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fio-ini.c b/fio-ini.c index 9b9262c9..6f866dfb 100644 --- a/fio-ini.c +++ b/fio-ini.c @@ -280,7 +280,7 @@ int init_random_state(struct thread_data *td) unsigned long seed; int fd, num_maps, blocks; - fd = open("/dev/random", O_RDONLY); + fd = open("/dev/urandom", O_RDONLY); if (fd == -1) { td_verror(td, errno); return 1; -- 2.25.1