fix: assert variant_match in CSPRNG key entropy test

Add missing assertion for variant_match (byte[8] UUID v4 variant bits)
which was computed but never checked.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
fettpl 2026-02-15 00:25:20 +01:00
parent 1f9247092c
commit a7ed2329d1

View file

@ -773,6 +773,11 @@ mod tests {
"byte[6] matched UUID v4 version nibble {version_match}/100 times — \
likely still using UUID-based key generation"
);
assert!(
variant_match < 50,
"byte[8] matched UUID v4 variant bits {variant_match}/100 times — \
likely still using UUID-based key generation"
);
}
#[cfg(unix)]