summaryrefslogtreecommitdiffstats
path: root/usr.sbin/adduser
diff options
context:
space:
mode:
authordd <dd@FreeBSD.org>2001-07-19 12:00:04 +0000
committerdd <dd@FreeBSD.org>2001-07-19 12:00:04 +0000
commita47ce97e795423ed21501c5fd28f73c0e31afc5d (patch)
treefd9fd87d59f699be3e6a0efcc096d35d34017756 /usr.sbin/adduser
parent2dcfabf4c9fecf80c5be347d0fe9ee6b8a6b045f (diff)
downloadFreeBSD-src-a47ce97e795423ed21501c5fd28f73c0e31afc5d.zip
FreeBSD-src-a47ce97e795423ed21501c5fd28f73c0e31afc5d.tar.gz
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>
Diffstat (limited to 'usr.sbin/adduser')
-rw-r--r--usr.sbin/adduser/adduser.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/adduser/adduser.perl b/usr.sbin/adduser/adduser.perl
index e70349c..58cffec 100644
--- a/usr.sbin/adduser/adduser.perl
+++ b/usr.sbin/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];
OpenPOWER on IntegriCloud