This commit is contained in:
virusdefender 2018-10-14 21:10:35 +08:00
parent 3795aaa198
commit 8354271217

View File

@ -1,5 +1,5 @@
#!/usr/bin/env python3
import os
import base64
import copy
import random
@ -154,7 +154,7 @@ class FPSHelper(object):
"input_name": f"{index}.in",
"output_size": len(output_content),
"output_name": f"{index}.out",
"stripped_output_md5": hashlib.md5(output_content.rstrip()).hexdigest()
"stripped_output_md5": hashlib.md5(output_content.rstrip().encode("utf-8")).hexdigest()
}
test_cases[index] = one_info
info = {