Open
Description
randomatic('?', 4)
Currently if the chars
option is not specified, the characters from undefined
are used as the custom characters (including the fact that d
, n
and e
are 2x more frequent than the remaining letters.
Should an error be thrown instead? Or maybe [a-z]
used and a message logged to that effect?
The readme does indeed specify that the default is undefined
, but it was still a little surprising to me that it was allowed to be coerced to a string if not user-specified.