cast and mask is overkill.

This commit is contained in:
christos 2015-01-14 22:57:27 +00:00
parent 629020497c
commit 7e4263ceda
1 changed files with 2 additions and 2 deletions

View File

@ -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();