Module: kamailio Branch: 5.2 Commit: 6beb87f165d9926cd14eb0bd4d57f4167232121c URL: https://github.com/kamailio/kamailio/commit/6beb87f165d9926cd14eb0bd4d57f416...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2019-10-07T11:43:55+02:00
tls: use fastrand() for the corresponding rand_engine
(cherry picked from commit f877069e141749796ec02a78ce16342f9e120ef7) (cherry picked from commit 52dda341500c697b988f600d3ae6f1b0065670bc)
---
Modified: src/modules/tls/tls_rand.c
---
Diff: https://github.com/kamailio/kamailio/commit/6beb87f165d9926cd14eb0bd4d57f416... Patch: https://github.com/kamailio/kamailio/commit/6beb87f165d9926cd14eb0bd4d57f416...
---
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;