diff options
Diffstat (limited to 'malloc/tst-malloc.c')
-rw-r--r-- | malloc/tst-malloc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/malloc/tst-malloc.c b/malloc/tst-malloc.c index a7491d3..f7a6e46 100644 --- a/malloc/tst-malloc.c +++ b/malloc/tst-malloc.c @@ -18,7 +18,9 @@ #include <errno.h> #include <malloc.h> #include <stdio.h> +#include <stdlib.h> #include <libc-diag.h> +#include <time.h> static int errors = 0; @@ -35,6 +37,8 @@ do_test (void) void *p, *q; int save; + srandom (time (NULL)); + errno = 0; DIAG_PUSH_NEEDS_COMMENT; |