Use rand instead of srand
diff --git a/tests/fuzz/fuzz_dtlsserver.c b/tests/fuzz/fuzz_dtlsserver.c
index 6f31bfb..d50b0ad 100644
--- a/tests/fuzz/fuzz_dtlsserver.c
+++ b/tests/fuzz/fuzz_dtlsserver.c
@@ -72,7 +72,7 @@
ret = mbedtls_ctr_drbg_random(p_rng, output, output_len);
for (i=0; i<output_len; i++) {
//replace result with pseudo random
- output[i] = (unsigned char) random();
+ output[i] = (unsigned char) rand();
}
return( ret );
}
@@ -87,7 +87,7 @@
//ret = mbedtls_entropy_func(data, output, len);
for (i=0; i<len; i++) {
//replace result with pseudo random
- output[i] = (unsigned char) random();
+ output[i] = (unsigned char) rand();
}
return( 0 );
}
@@ -140,7 +140,7 @@
goto exit;
- srandom(1);
+ srand(1);
mbedtls_ssl_conf_rng( &conf, dummy_random, &ctr_drbg );
#if defined(MBEDTLS_X509_CRT_PARSE_C)