补充设备画像兜底说明
This commit is contained in:
@@ -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 :]
|
||||
|
||||
Reference in New Issue
Block a user