diff options
author | Dima Dorfman <dd@FreeBSD.org> | 2001-07-19 12:00:04 +0000 |
---|---|---|
committer | Dima Dorfman <dd@FreeBSD.org> | 2001-07-19 12:00:04 +0000 |
commit | 7835533fad54f56aec80a6786384f01969a5cd67 (patch) | |
tree | c14d48785d0d20bec2ce27eadedf640416fe0864 | |
parent | 386a8793cb000d825e62edfde6448748b2085e50 (diff) | |
download | pw-darwin-7835533fad54f56aec80a6786384f01969a5cd67.tar.gz pw-darwin-7835533fad54f56aec80a6786384f01969a5cd67.tar.zst pw-darwin-7835533fad54f56aec80a6786384f01969a5cd67.zip |
Generate a bigger salt. This is necessary for blowfish to work
properly, and doesn't hurt the other algorithms.
PR: 28991
Submitted by: Yoshihiro Koya <Yoshihiro.Koya@math.yokohama-cu.ac.jp>
-rw-r--r-- | adduser/adduser.perl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/adduser/adduser.perl b/adduser/adduser.perl index e70349c..58cffec 100644 --- a/adduser/adduser.perl +++ b/adduser/adduser.perl @@ -894,7 +894,7 @@ sub salt { warn "calculate salt\n" if $verbose > 1; # to64 - for ($i = 0; $i < 8; $i++) { + for ($i = 0; $i < 27; $i++) { srand(time + $rand + $$); $rand = rand(25*29*17 + $rand); $salt .= $itoa64[$rand & $#itoa64]; |