1.\" $OpenBSD: RAND_add.3,v 1.10 2018/03/27 17:35:50 schwarze Exp $ 2.\" content checked up to: OpenSSL c16de9d8 Aug 31 23:16:22 2017 +0200 3.\" 4.\" Copyright (c) 2014 Miod Vallat <miod@openbsd.org> 5.\" 6.\" Permission to use, copy, modify, and distribute this software for any 7.\" purpose with or without fee is hereby granted, provided that the above 8.\" copyright notice and this permission notice appear in all copies. 9.\" 10.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 11.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 12.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 13.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 14.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 15.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 16.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17.\" 18.Dd $Mdocdate: March 27 2018 $ 19.Dt RAND_ADD 3 20.Os 21.Sh NAME 22.Nm RAND_add , 23.Nm RAND_cleanup , 24.Nm RAND_poll , 25.Nm RAND_seed , 26.Nm RAND_status 27.Nd manipulate the PRNG state 28.Sh SYNOPSIS 29.In openssl/rand.h 30.Ft void 31.Fo RAND_add 32.Fa "const void *buf" 33.Fa "int num" 34.Fa "double entropy" 35.Fc 36.Ft void 37.Fn RAND_cleanup void 38.Ft int 39.Fn RAND_poll void 40.Ft void 41.Fo RAND_seed 42.Fa "const void *buf" 43.Fa "int num" 44.Fc 45.Ft int 46.Fn RAND_status void 47.Sh DESCRIPTION 48These functions used to allow for the state of the random number 49generator to be controlled by external sources. 50.Pp 51They are kept for ABI compatibility but are no longer functional, and 52should not be used in new programs. 53.Sh RETURN VALUES 54.Fn RAND_poll 55and 56.Fn RAND_status 57always return 1. 58.Sh HISTORY 59.Fn RAND_cleanup 60and 61.Fn RAND_seed 62first appeared in SSLeay 0.5.1 and have been available since 63.Ox 2.4 . 64.Pp 65.Fn RAND_add 66and 67.Fn RAND_status 68first appeared in OpenSSL 0.9.5 and have been available since 69.Ox 2.7 . 70.Pp 71.Fn RAND_poll 72first appeared in OpenSSL 0.9.6 and has been available since 73.Ox 2.9 . 74