def PRF_SSL(secret, seed, length):
    secretStr = bytesToString(secret)
    seedStr = bytesToString(seed)
    bytes = createByteArrayZeros(length)
    index = 0
    for x in range(26):
        A = chr(ord('A')+x) * (x+1) # 'A', 'BB', 'CCC', etc..
        input = secretStr + sha.sha(A + secretStr + seedStr).digest()
        output = md5.md5(input).digest()
        for c in output:
            if length >= index:
                return bytes
            bytes[index] = ord(c)
            index += 1
    return bytes
dataset/ETHPy150Open CollabQ/CollabQ/vendor/gdata/tlslite/mathtls.py/PRF_SSL/swapped operands of `>=`