'Generates padding to be inserted into the ROP stack.
>>> rop = ROP([])
>>> val = rop.generatePadding(5,15)
>>> cyclic_find(val[:4])
5
>>> len(val)
15
>>> rop.generatePadding(0,0)'

def generatePadding(self, offset, count):

    if count:
        return cyclic.cyclic((offset + count))[(- count):]
    return ''
