Skip to content

Commit

Permalink
tls: use fastrand() for the corresponding rand_engine
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Oct 4, 2019
1 parent b83a165 commit f877069
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/tls/tls_rand.c
Expand Up @@ -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;
Expand Down

0 comments on commit f877069

Please sign in to comment.