Mercurial > projects > pwm
comparison compat/getline.c @ 33:fa93d2ff9c62
Prevent potential division by zero
Add safeguard ensuring that there is at least one possible character to
generate passwords from in order to exclude the possibility of a division by
zero error in rand_uniform.
author | Guido Berhoerster <guido+pwm@berhoerster.name> |
---|---|
date | Tue, 30 Jul 2019 20:38:08 +0200 |
parents | 5bdea77d0c1d |
children |
comparison
equal
deleted
inserted
replaced
32:b5ebed168e59 | 33:fa93d2ff9c62 |
---|