ulif/diceware

Error for special characters and realdice as random source

Closed this issue · 2 comments

The following command results in an error:

diceware -n 1 -s 1 -r realdice
#2
#2
#2
#2
#2

The word that should be chosen in this case is Cumin. But it results in an error since I requested special characters, and the word Cumin is only 5 characters long. The program isn't setup to choose from a sequence that is shorter than the number of sides on the die.

This is a great project, by the way. I have forked it, and I will be submitting a pull request shortly, which I hope will fix this issue.

ulif commented

Thank you @dwcoder for spotting this bug. And thanks for looking into this!