diff --git a/tests/h_macros.h b/tests/h_macros.h index 8a945d00d4bf..ac19f66bb406 100644 --- a/tests/h_macros.h +++ b/tests/h_macros.h @@ -1,4 +1,4 @@ -/* $NetBSD: h_macros.h,v 1.10 2015/01/14 22:16:04 christos Exp $ */ +/* $NetBSD: h_macros.h,v 1.11 2015/01/14 22:57:27 christos Exp $ */ /*- * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc. @@ -75,7 +75,7 @@ tests_makegarbage(void *space, size_t len) uint16_t randval; while (len >= sizeof(randval)) { - *sb++ = ((uint16_t)random() & 0xffff); + *sb++ = (uint16_t)random(); len -= sizeof(*sb); } randval = (uint16_t)random();