Module Name: src Committed By: christos Date: Wed Jan 14 22:57:27 UTC 2015
Modified Files: src/tests: h_macros.h Log Message: cast and mask is overkill. To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/tests/h_macros.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tests/h_macros.h diff -u src/tests/h_macros.h:1.10 src/tests/h_macros.h:1.11 --- src/tests/h_macros.h:1.10 Wed Jan 14 17:16:04 2015 +++ src/tests/h_macros.h Wed Jan 14 17:57:27 2015 @@ -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 le uint16_t randval; while (len >= sizeof(randval)) { - *sb++ = ((uint16_t)random() & 0xffff); + *sb++ = (uint16_t)random(); len -= sizeof(*sb); } randval = (uint16_t)random();