entropy_test.c revision 3759f10fc543747668b1ca4b4671f35b0dea8445
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * Copyright (C) 2004, 2005, 2007, 2015 Internet Systems Consortium, Inc. ("ISC")
cf0d508b1eb836150fd2fc9c3d497525ed8fbe66Evan Hunt * Copyright (C) 2000, 2001 Internet Software Consortium.
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * Permission to use, copy, modify, and/or distribute this software for any
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * purpose with or without fee is hereby granted, provided that the above
cf0d508b1eb836150fd2fc9c3d497525ed8fbe66Evan Hunt * copyright notice and this permission notice appear in all copies.
5e3affc6a0b155ee1cadac735c1a71f4d418ad69Evan Hunt * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
cf0d508b1eb836150fd2fc9c3d497525ed8fbe66Evan Hunt * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
cf0d508b1eb836150fd2fc9c3d497525ed8fbe66Evan Hunt * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
cf0d508b1eb836150fd2fc9c3d497525ed8fbe66Evan Hunt * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
cf0d508b1eb836150fd2fc9c3d497525ed8fbe66Evan Hunt * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
cf0d508b1eb836150fd2fc9c3d497525ed8fbe66Evan Hunt * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
cf0d508b1eb836150fd2fc9c3d497525ed8fbe66Evan Hunt * PERFORMANCE OF THIS SOFTWARE.
cf0d508b1eb836150fd2fc9c3d497525ed8fbe66Evan Hunt/* $Id: entropy_test.c,v 1.23 2007/06/19 23:46:59 tbox Exp $ */
cf0d508b1eb836150fd2fc9c3d497525ed8fbe66Evan Hunthex_dump(const char *msg, void *data, unsigned int length) {
cf0d508b1eb836150fd2fc9c3d497525ed8fbe66Evan Hunt unsigned int len;
cf0d508b1eb836150fd2fc9c3d497525ed8fbe66Evan Hunt unsigned char *base;
cf0d508b1eb836150fd2fc9c3d497525ed8fbe66Evan Hunt printf("FAILURE: %s: %s\n", msg, isc_result_totext(result));
unsigned int returned;
unsigned int flags;
flags = 0;
goto any;
any:
flags = 0;
flags);