1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-02-22 04:22:13 +00:00

Run through Clang's performance-type-promotion-in-math-fn

Only changed log2 to log2f. Rightly so.
This commit is contained in:
Rosen Penev 2019-08-03 19:49:07 -07:00
parent dca1a86315
commit df618e861e
No known key found for this signature in database
GPG Key ID: 36D31CFA845F0E3B

View File

@ -794,7 +794,7 @@ float get_entropy (const u8 *buf, const int len)
float w = (float) r / len;
entropy += -w * log2 (w);
entropy += -w * log2f (w);
}
return entropy;