|
@ -794,9 +794,9 @@ class auth_chain_d(auth_chain_b): |
|
|
|
|
|
|
|
|
def check_and_patch_data_size(self, random): |
|
|
def check_and_patch_data_size(self, random): |
|
|
# append new item |
|
|
# append new item |
|
|
# when the biggest item(first time) or the last item(other time) are not big enough. |
|
|
# when the biggest item(first time) or the last append item(other time) are not big enough. |
|
|
# but set a limit size (64) to avoid stack over follow. |
|
|
# but set a limit size (64) to avoid stack over follow. |
|
|
if self.data_size_list0[-1] < 1000 and len(self.data_size_list0) < 64: |
|
|
if self.data_size_list0[-1] < 1300 and len(self.data_size_list0) < 64: |
|
|
self.data_size_list0.append((int)(random.next() % 2340 % 2040 % 1440)) |
|
|
self.data_size_list0.append((int)(random.next() % 2340 % 2040 % 1440)) |
|
|
self.check_and_patch_data_size(random) |
|
|
self.check_and_patch_data_size(random) |
|
|
|
|
|
|
|
|