补充设备画像兜底说明

This commit is contained in:
yml2213
2026-08-30 23:05:20 +08:00
parent f4ed518b50
commit 2a1d27f953
2 changed files with 2 additions and 3 deletions
+1 -3
View File
@@ -87,9 +87,7 @@ class TestRandomDfpBody:
"core.huya.dfp_register._random_triple",
return_value=("h" * 64, "r" * 64, "k" * 64),
),
patch(
"core.huya.dfp_register.os.urandom", side_effect=lambda n: b"\0" * n
),
patch("core.huya.dfp_register.os.urandom", side_effect=lambda n: b"\0" * n),
):
body = _build_random_dfp_body(profile)
assert hashlib.sha256(plaintext).digest() in body[-CW_LEN + 2 :]