This reads to me like `length` is supposed to be a 6 digit value (so at least 100000) As opposed to length SHOULD be >6.

Maybe explaining that `length` is the number of digits in the generated password and should be >=6, would be a little more clear.