1.\" $OpenBSD: RAND_add.3,v 1.5 2016/12/15 06:52:02 jmc Exp $ 2.\" 3.\" Copyright (c) 2014 Miod Vallat <miod@openbsd.org> 4.\" 5.\" Permission to use, copy, modify, and distribute this software for any 6.\" purpose with or without fee is hereby granted, provided that the above 7.\" copyright notice and this permission notice appear in all copies. 8.\" 9.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16.\" 17.Dd $Mdocdate: December 15 2016 $ 18.Dt RAND_ADD 3 19.Os 20.Sh NAME 21.Nm RAND_add , 22.Nm RAND_cleanup , 23.Nm RAND_seed , 24.Nm RAND_status 25.Nd manipulate the PRNG state 26.Sh SYNOPSIS 27.In openssl/rand.h 28.Ft void 29.Fo RAND_add 30.Fa "const void *buf" 31.Fa "int num" 32.Fa "double entropy" 33.Fc 34.Ft void 35.Fn RAND_cleanup void 36.Ft void 37.Fo RAND_seed 38.Fa "const void *buf" 39.Fa "int num" 40.Fc 41.Ft int 42.Fn RAND_status void 43.Sh DESCRIPTION 44These functions used to allow for the state of the random number 45generator to be controlled by external sources. 46.Pp 47They are kept for ABI compatibility but are no longer functional, and 48should not be used in new programs. 49.Sh RETURN VALUES 50.Fn RAND_status 51always returns 1. 52