aboutsummaryrefslogtreecommitdiffstats
path: root/lib/hcrypto/rand.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/hcrypto/rand.c')
-rw-r--r--lib/hcrypto/rand.c11
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
*/