projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fcb6ade
)
[PATCH] Use /dev/urandom instead of /dev/random
author
Jens Axboe
<axboe@suse.de>
Wed, 31 May 2006 18:29:00 +0000
(20:29 +0200)
committer
Jens Axboe
<axboe@suse.de>
Wed, 31 May 2006 18:29:00 +0000
(20:29 +0200)
We are not cryptographic software, and with many threads it's
actually possible to run out of entropy.
fio-ini.c
patch
|
blob
|
blame
|
history
diff --git
a/fio-ini.c
b/fio-ini.c
index 9b9262c9d8e0274528ce991190b01b365d86e523..6f866dfbc7c2d0fff58bab94c6a6fbe1538b98ba 100644
(file)
--- 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/
u
random", O_RDONLY);
if (fd == -1) {
td_verror(td, errno);
return 1;