usnistgov / SP800-90B_EntropyAssessment

The SP800-90B_EntropyAssessment C++package implements the min-entropy assessment methods included in Special Publication 800-90B.
202 stars 87 forks source link

Boolean values never equal -1 #185

Closed joshuaehill closed 2 years ago

joshuaehill commented 2 years ago

There are a few attempts at treating boolean values as tri-state values containing true, false or -1, and some comparisons are made of boolean values against -1. This is undefined behavior, and on some compilers, a boolean can never equal -1.