Fixed a small bug

This commit is contained in:
Alexandre Possebom 2014-09-22 20:16:11 -03:00
parent 5c22f01266
commit a8d177f231
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
from setuptools import setup, find_packages
import sys, os
version = '0.1'
version = '0.2'
setup(name='twik',
version=version,

View File

@ -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)