diff options
author | Mark McLoughlin <markmc@redhat.com> | 2008-01-22 16:42:45 +0000 |
---|---|---|
committer | Mark McLoughlin <markmc@redhat.com> | 2008-01-22 16:42:45 +0000 |
commit | 996a3f669898e4fc764867c63d9da87aa3b35854 (patch) | |
tree | c80da4f13882fce1b10468afb55d77f66aa0ff07 /ipa-radius-admintools | |
parent | 11266d039f6c59be1bf8ce888972d012ce49ddf6 (diff) | |
download | freeipa-996a3f669898e4fc764867c63d9da87aa3b35854.tar.gz freeipa-996a3f669898e4fc764867c63d9da87aa3b35854.tar.xz freeipa-996a3f669898e4fc764867c63d9da87aa3b35854.zip |
Fix not so random random passwords
If you run ipa_generate_password() multiple times, one
after the other, then you get the same password each time.
This is because it uses the current time to seed the
pseudo random number generator.
The easiest solution is to just use the default method
which seeds itself from /dev/urandom if available,
and uses a fractional time value otherwise.
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Diffstat (limited to 'ipa-radius-admintools')
0 files changed, 0 insertions, 0 deletions