diff options
author | Hiroki Sato <hrs@FreeBSD.org> | 2018-04-04 04:21:19 +0000 |
---|---|---|
committer | Hiroki Sato <hrs@FreeBSD.org> | 2018-04-04 04:21:19 +0000 |
commit | d684f11da759490a8d98d7b790796106285f4084 (patch) | |
tree | 27b7356df710fdf1440fe2c23154b8121e99f2ab /lib/hcrypto/rand.c | |
parent | f52d4664e3f68828c06f85bfc1afa271e3e04713 (diff) | |
download | src-d684f11da759490a8d98d7b790796106285f4084.tar.gz src-d684f11da759490a8d98d7b790796106285f4084.zip |
Import Heimdal 7.5.0.vendor/heimdal/7.5.0vendor/heimdal
Notes
Notes:
svn path=/vendor-crypto/heimdal/dist/; revision=331978
svn path=/vendor-crypto/heimdal/7.5.0/; revision=331979; tag=vendor/heimdal/7.5.0
Diffstat (limited to 'lib/hcrypto/rand.c')
-rw-r--r-- | lib/hcrypto/rand.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/hcrypto/rand.c b/lib/hcrypto/rand.c index d5c1f687b910..98432e75ed89 100644 --- a/lib/hcrypto/rand.c +++ b/lib/hcrypto/rand.c @@ -34,14 +34,11 @@ */ #include <config.h> +#include <roken.h> -#include <stdio.h> -#include <stdlib.h> #include <rand.h> #include <randi.h> -#include <roken.h> - #ifndef O_BINARY #define O_BINARY 0 #endif @@ -56,7 +53,7 @@ * See the library functions here: @ref hcrypto_rand */ -const static RAND_METHOD *selected_meth = NULL; +static const RAND_METHOD *selected_meth = NULL; static ENGINE *selected_engine = NULL; static void @@ -209,6 +206,8 @@ RAND_set_rand_method(const RAND_METHOD *meth) /** * Get the default random method. * + * @return Returns a RAND_METHOD + * * @ingroup hcrypto_rand */ @@ -265,6 +264,8 @@ RAND_set_rand_engine(ENGINE *engine) * @param filename name of file to read. * @param size minimum size to read. * + * @return Returns the number of seed bytes loaded (0 indicates failure) + * * @ingroup hcrypto_rand */ |