Fixed a small bug
This commit is contained in:
parent
5c22f01266
commit
a8d177f231
2
setup.py
2
setup.py
|
@ -1,7 +1,7 @@
|
|||
from setuptools import setup, find_packages
|
||||
import sys, os
|
||||
|
||||
version = '0.1'
|
||||
version = '0.2'
|
||||
|
||||
setup(name='twik',
|
||||
version=version,
|
||||
|
|
|
@ -71,7 +71,7 @@ def injectcharacter(input, offset, reserved, seed, length, cStart, cNum):
|
|||
for i in range(0, length - reserved):
|
||||
i2 = (pos0 + reserved + i) % length
|
||||
c = ord(input[i2])
|
||||
if c >= cStart or c < ord(cStart) + cNum:
|
||||
if c >= ord(cStart) and c < ord(cStart) + cNum:
|
||||
return input
|
||||
head = input[:pos] if pos > 0 else ""
|
||||
inject = ((seed + ord(input[pos])) % cNum) + ord(cStart)
|
||||
|
|
Loading…
Reference in New Issue