Fix error when generating random binary strings
Merge pull request #62 from PaulSD/master

Fix errors when generating random binary strings