Mercurial > projects > pwm
comparison compat/err.h @ 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 | a7e41e1a79c8 |
children |
comparison
equal
deleted
inserted
replaced
32:b5ebed168e59 | 33:fa93d2ff9c62 |
---|