diff options
author | jhb <jhb@FreeBSD.org> | 2005-06-22 15:24:00 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2005-06-22 15:24:00 +0000 |
commit | 6c5bcb1fd2ef5e07ba6f8b9bbc2709fd50c6e93a (patch) | |
tree | 01a101529daa726caa3a70a9426d05644a549e4e /lib/libutil/logout.c | |
parent | 10ae787bfbad9af16740652a649882b41ff8596d (diff) | |
download | FreeBSD-src-6c5bcb1fd2ef5e07ba6f8b9bbc2709fd50c6e93a.zip FreeBSD-src-6c5bcb1fd2ef5e07ba6f8b9bbc2709fd50c6e93a.tar.gz |
Correct an error in the previous revision. RAND_MAX is the maximum value
for rand(3), not random(3). random(3) is defined to return values between
0 and 2^31-1, so add a local RANDOM_MAX constant to this file that is
defined as 2^31-1 and use that in place of RAND_MAX.
Reviewed by: bde
Approved by: re (dwhite)
MFC after: 1 week
Diffstat (limited to 'lib/libutil/logout.c')
0 files changed, 0 insertions, 0 deletions