flippin dangerous

master
JoYo 2019-02-19 00:28:34 +00:00
parent 908248905a
commit 01d309f81f
1 changed files with 6 additions and 0 deletions

View File

@ -84,6 +84,12 @@ def sins():
with seed.open('rb') as seed_file: with seed.open('rb') as seed_file:
seed_data = seed_file.read() seed_data = seed_file.read()
seed_data = bytearray(seed_data)
offset = randint(0, len(seed_data))
flip = randint(0, 255)
seed_data[offset] ^= flip
seed_len = ctypes.c_uint(len(seed_data)) seed_len = ctypes.c_uint(len(seed_data))
logger.info(f'seed_data\n{binascii.b2a_hex(seed_data)}') logger.info(f'seed_data\n{binascii.b2a_hex(seed_data)}')
logger.info(f'seed_len: {seed_len}') logger.info(f'seed_len: {seed_len}')