Improve memset cleaning by using proper sizeof

This commit is contained in:
Radim Kolar 2024-07-08 12:23:10 +02:00
parent 8428f5fd6c
commit f908c5bd2a

View File

@ -46,7 +46,7 @@ static void run_randomtest( unsigned short (*keygen)(void) )
unsigned short rnd;
/* zero bitcount first */
memset(bitcount,0,16*sizeof(int));
memset(bitcount, 0, sizeof(bitcount));
for(i=0;i<rounds;i++)
{