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:
parent
1f9247092c
commit
a7ed2329d1
1 changed files with 5 additions and 0 deletions
|
|
@ -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)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue