Module: kamailio
Branch: 5.3
Commit: 52dda341500c697b988f600d3ae6f1b0065670bc
URL:
https://github.com/kamailio/kamailio/commit/52dda341500c697b988f600d3ae6f1b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-10-07T10:52:33+02:00
tls: use fastrand() for the corresponding rand_engine
(cherry picked from commit f877069e141749796ec02a78ce16342f9e120ef7)
---
Modified: src/modules/tls/tls_rand.c
---
Diff:
https://github.com/kamailio/kamailio/commit/52dda341500c697b988f600d3ae6f1b…
Patch:
https://github.com/kamailio/kamailio/commit/52dda341500c697b988f600d3ae6f1b…
---
diff --git a/src/modules/tls/tls_rand.c b/src/modules/tls/tls_rand.c
index 9101251dd7..bc80f658c3 100644
--- a/src/modules/tls/tls_rand.c
+++ b/src/modules/tls/tls_rand.c
@@ -93,13 +93,13 @@ static int ksr_fastrand_bytes(unsigned char *outdata, int size)
}
while(size >= sizeof(int)) {
- r = kam_rand();
+ r = fastrand();
memcpy(outdata, &r, sizeof(int));
size -= sizeof(int);
outdata += sizeof(int);
}
if(size>0) {
- r = kam_rand();
+ r = fastrand();
memcpy(outdata, &r, size);
}
return 1;