Force ztest to always use /dev/urandom

For ztest, which is solely for testing, using a pseudo random
is entirely reasonable.  Using /dev/urandom ensures the system
entropy pool doesn't get depleted thus stalling the testing.
This is a particular problem when testing in VMs.

Reviewed-by: Tim Chase <tim@chase2k.com>
Reviewed by: Thomas Caputi <tcaputi@datto.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #7017 
Closes #7036
This commit is contained in:
Brian Behlendorf
2018-01-12 09:36:26 -08:00
committed by GitHub
parent 6df9f8ebd7
commit e1a0850c35
5 changed files with 12 additions and 16 deletions
+2
View File
@@ -630,6 +630,8 @@ extern void delay(clock_t ticks);
#define NN_NUMBUF_SZ (6)
extern uint64_t physmem;
extern char *random_path;
extern char *urandom_path;
extern int highbit64(uint64_t i);
extern int lowbit64(uint64_t i);