Skip to content

Commit 5ebfe1b

Browse files
committed
Switch to using /dev/urandom as file source
1 parent 32411c2 commit 5ebfe1b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/dispatch_read2.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ test_read(void)
179179
static void
180180
test_read_write(void)
181181
{
182-
const char *path_in = "/dev/random";
182+
const char *path_in = "/dev/urandom";
183183
char path_out[] = "/tmp/dispatchtest_io.XXXXXX";
184184
const size_t siz_in = 10240;
185185

@@ -246,7 +246,7 @@ test_read_write(void)
246246
static void
247247
test_read_writes(void) // <rdar://problem/7785143>
248248
{
249-
const char *path_in = "/dev/random";
249+
const char *path_in = "/dev/urandom";
250250
char path_out[] = "/tmp/dispatchtest_io.XXXXXX";
251251
const size_t chunks_out = 320;
252252
const size_t siz_chunk = 32, siz_in = siz_chunk * chunks_out;
@@ -333,7 +333,7 @@ test_read_writes(void) // <rdar://problem/7785143>
333333
static void
334334
test_writes_reads_eagain(void) // rdar://problem/8333366
335335
{
336-
int in = open("/dev/random", O_RDONLY);
336+
int in = open("/dev/urandom", O_RDONLY);
337337
if (in == -1) {
338338
test_errno("open", errno, 0);
339339
test_stop();

0 commit comments

Comments
 (0)