14eeb4f04SMark Murray /*- 24eeb4f04SMark Murray * Copyright (c) 2000 Mark Murray 34eeb4f04SMark Murray * All rights reserved. 41bb2d314SMark Murray * 51bb2d314SMark Murray * Redistribution and use in source and binary forms, with or without 61bb2d314SMark Murray * modification, are permitted provided that the following conditions 71bb2d314SMark Murray * are met: 81bb2d314SMark Murray * 1. Redistributions of source code must retain the above copyright 94eeb4f04SMark Murray * notice, this list of conditions and the following disclaimer 104eeb4f04SMark Murray * in this position and unchanged. 111bb2d314SMark Murray * 2. Redistributions in binary form must reproduce the above copyright 121bb2d314SMark Murray * notice, this list of conditions and the following disclaimer in the 131bb2d314SMark Murray * documentation and/or other materials provided with the distribution. 141bb2d314SMark Murray * 154eeb4f04SMark Murray * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 164eeb4f04SMark Murray * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 174eeb4f04SMark Murray * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 184eeb4f04SMark Murray * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 194eeb4f04SMark Murray * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 204eeb4f04SMark Murray * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 214eeb4f04SMark Murray * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 224eeb4f04SMark Murray * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 234eeb4f04SMark Murray * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 244eeb4f04SMark Murray * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 251bb2d314SMark Murray * 264eeb4f04SMark Murray * $FreeBSD$ 271bb2d314SMark Murray */ 281bb2d314SMark Murray 29a3b693c9SBruce Evans #ifndef _SYS_RANDOM_H_ 30a3b693c9SBruce Evans #define _SYS_RANDOM_H_ 311bb2d314SMark Murray 32da3fb6b4SMark Murray #ifdef _KERNEL 33da3fb6b4SMark Murray 344eeb4f04SMark Murray u_int read_random(char *, u_int); 354eeb4f04SMark Murray void write_random(char *, u_int); 361bb2d314SMark Murray 37da3fb6b4SMark Murray void random_harvest(u_int64_t, u_int, u_int, u_int); 38da3fb6b4SMark Murray 39da3fb6b4SMark Murray #endif 40da3fb6b4SMark Murray 414eeb4f04SMark Murray #endif /* _SYS_RANDOM_H_ */ 42