]> git.ipfire.org Git - thirdparty/shadow.git/commit
Debian bug 677275 - random() max value
authorNicolas François <nicolas.francois@centraliens.net>
Mon, 5 Aug 2013 12:19:23 +0000 (14:19 +0200)
committerNicolas François <nicolas.francois@centraliens.net>
Mon, 5 Aug 2013 12:19:23 +0000 (14:19 +0200)
commit60fc4bbf57528660a9186605f5743411f1e62d6a
treeffc810e073de5b74522b43a0e0caaf2ea9201b14
parent7903a1b7670e6f0cc10c340ff2a8b8676e36ecc4
Debian bug 677275 - random() max value

* libmisc/salt.c: random() max value is 2^31-1 (same as RAND_MAX
on GNU). As it is not clear whether on some systems the max value
can exceed this number and whether some systems have max values
which would be lower, we take this into account when defining the
salt size and number of rounds for SHA encrypted passwords. Higher
values are favored.
ChangeLog
libmisc/salt.c