fixed signed-unsigned issue from 166

Loss of entropy can be discussed at a later time, but is
not deemed a significant issue for now.
Merge pull request #167

aeaa44f fixed signed-unsigned issue from 166 (Thomas Winget)