summaryrefslogtreecommitdiffstats
path: root/crypto/rand/rand_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/rand/rand_lib.c')
-rw-r--r--crypto/rand/rand_lib.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/crypto/rand/rand_lib.c b/crypto/rand/rand_lib.c
index 6bea09211c..2eb5e12182 100644
--- a/crypto/rand/rand_lib.c
+++ b/crypto/rand/rand_lib.c
@@ -68,34 +68,29 @@ extern RAND_METHOD rand_ssleay_meth;
static RAND_METHOD *rand_meth= &rand_ssleay_meth;
#endif
-void RAND_set_rand_method(meth)
-RAND_METHOD *meth;
+void RAND_set_rand_method(RAND_METHOD *meth)
{
rand_meth=meth;
}
-RAND_METHOD *RAND_get_rand_method()
+RAND_METHOD *RAND_get_rand_method(void)
{
return(rand_meth);
}
-void RAND_cleanup()
+void RAND_cleanup(void)
{
if (rand_meth != NULL)
rand_meth->cleanup();
}
-void RAND_seed(buf,num)
-const void *buf;
-int num;
+void RAND_seed(const void *buf, int num)
{
if (rand_meth != NULL)
rand_meth->seed(buf,num);
}
-void RAND_bytes(buf,num)
-unsigned char *buf;
-int num;
+void RAND_bytes(unsigned char *buf, int num)
{
if (rand_meth != NULL)
rand_meth->bytes(buf,num);