I created a list of size 100 and populated the array with 8bit data in python using the following code and I want to calculate the CRC value using the zlib.crc32() function.
Init_RangenCrc8 = []
for i in range(0,100):
Init_RangenCrc8.append(random.randrange(0, 255, 1))
crc8_python = zlib.crc32(Init_RangenCrc8, 0xFFFF)
When I return and print the crc8_python, I am not getting any value back.
Any help would be appreciated, thanks.
Init_RangenCrc8 = []should be before theforloop, shouldn't it? The indentation doesn't look right.