random.h revision 62766
11556Srgrimes/*- 21556Srgrimes * Copyright (c) 2000 Mark Murray 31556Srgrimes * All rights reserved. 41556Srgrimes * 51556Srgrimes * Redistribution and use in source and binary forms, with or without 61556Srgrimes * modification, are permitted provided that the following conditions 71556Srgrimes * are met: 81556Srgrimes * 1. Redistributions of source code must retain the above copyright 91556Srgrimes * notice, this list of conditions and the following disclaimer 101556Srgrimes * in this position and unchanged. 111556Srgrimes * 2. Redistributions in binary form must reproduce the above copyright 121556Srgrimes * notice, this list of conditions and the following disclaimer in the 131556Srgrimes * documentation and/or other materials provided with the distribution. 141556Srgrimes * 151556Srgrimes * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 161556Srgrimes * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 171556Srgrimes * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 181556Srgrimes * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 191556Srgrimes * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 201556Srgrimes * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 211556Srgrimes * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 221556Srgrimes * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 231556Srgrimes * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 241556Srgrimes * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 251556Srgrimes * 261556Srgrimes * $FreeBSD: head/sys/sys/random.h 62766 2000-07-07 09:06:54Z markm $ 271556Srgrimes */ 28127499Sgad 29127499Sgad#ifndef _SYS_RANDOM_H_ 30127499Sgad#define _SYS_RANDOM_H_ 31127499Sgad 32127499Sgad#ifdef _KERNEL 33127499Sgad 34127499Sgadu_int read_random(char *, u_int); 351556Srgrimesvoid write_random(char *, u_int); 361556Srgrimes 371556Srgrimesvoid random_harvest(u_int64_t, u_int, u_int, u_int); 3890143Smarkm 391556Srgrimes#endif 401556Srgrimes 411556Srgrimes#endif /* _SYS_RANDOM_H_ */ 421556Srgrimes