summaryrefslogtreecommitdiff
path: root/src/common/md5calc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/md5calc.c')
-rw-r--r--src/common/md5calc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/md5calc.c b/src/common/md5calc.c
index 2178739d6..05fde42cc 100644
--- a/src/common/md5calc.c
+++ b/src/common/md5calc.c
@@ -6,6 +6,7 @@
*
***********************************************************/
+#include "../common/random.h"
#include "md5calc.h"
#include <string.h>
#include <stdio.h>
@@ -234,6 +235,6 @@ void MD5_Salt(unsigned int len, char * output)
{
unsigned int i;
for( i = 0; i < len; ++i )
- output[i] = (char)(1 + rand() % 255);
+ output[i] = (char)(1 + rnd() % 255);
}