Module: kamailio
Branch: master
Commit: f877069e141749796ec02a78ce16342f9e120ef7
URL:
https://github.com/kamailio/kamailio/commit/f877069e141749796ec02a78ce16342…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-10-04T11:15:04+02:00
tls: use fastrand() for the corresponding rand_engine
---
Modified: src/modules/tls/tls_rand.c
---
Diff:
https://github.com/kamailio/kamailio/commit/f877069e141749796ec02a78ce16342…
Patch:
https://github.com/kamailio/kamailio/commit/f877069e141749796ec02a78ce16342…
---
diff --git a/src/modules/tls/tls_rand.c b/src/modules/tls/tls_rand.c
index 3f78cb93e9..d5c29b845f 100644
--- a/src/modules/tls/tls_rand.c
+++ b/src/modules/tls/tls_rand.c
@@ -87,13 +87,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;