Improve memset cleaning by using proper sizeof
This commit is contained in:
parent
8428f5fd6c
commit
f908c5bd2a
|
|
@ -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++)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user