entropy2_test.c revision 1f1d36a87b65186d9f89aac7f456ab1fd2a39ef6
b9abd7863696ec53c12b9620d02c52b5683cbcc0Mark Andrews * Copyright (C) 2000, 2001 Internet Software Consortium.
b9abd7863696ec53c12b9620d02c52b5683cbcc0Mark Andrews * Permission to use, copy, modify, and distribute this software for any
b9abd7863696ec53c12b9620d02c52b5683cbcc0Mark Andrews * purpose with or without fee is hereby granted, provided that the above
b9abd7863696ec53c12b9620d02c52b5683cbcc0Mark Andrews * copyright notice and this permission notice appear in all copies.
b9abd7863696ec53c12b9620d02c52b5683cbcc0Mark Andrews * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
b9abd7863696ec53c12b9620d02c52b5683cbcc0Mark Andrews * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
b9abd7863696ec53c12b9620d02c52b5683cbcc0Mark Andrews * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
b9abd7863696ec53c12b9620d02c52b5683cbcc0Mark Andrews * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
b9abd7863696ec53c12b9620d02c52b5683cbcc0Mark Andrews * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
b9abd7863696ec53c12b9620d02c52b5683cbcc0Mark Andrews * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
b9abd7863696ec53c12b9620d02c52b5683cbcc0Mark Andrews * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
b9abd7863696ec53c12b9620d02c52b5683cbcc0Mark Andrews * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
b9abd7863696ec53c12b9620d02c52b5683cbcc0Mark Andrews/* $Id: entropy2_test.c,v 1.11 2001/11/30 01:58:57 gson Exp $ */
unsigned int len;
unsigned char *base;
static isc_result_t
if (blocking)
static isc_result_t
isc_time_t t;
if (!blocking)
return (ISC_R_NOENTROPY);
return (result);
TIME_NOW(&t);
extra = c;
return (result);
return (result);
unsigned int returned;
unsigned int flags;
&source);
flags = 0;
returned = 0;