diff options
author | ray <> | 2008-03-15 21:54:09 +0000 |
---|---|---|
committer | ray <> | 2008-03-15 21:54:09 +0000 |
commit | a8537602a33c58670952fc29ef3a95e13d478746 (patch) | |
tree | f113bd014a19461f4ba600fa0f3ebff056955bdd /src/lib/libc/crypt/arc4random.c | |
parent | 345b0c776379664674cd63535337db1453a25b4d (diff) | |
download | openbsd-a8537602a33c58670952fc29ef3a95e13d478746.tar.gz openbsd-a8537602a33c58670952fc29ef3a95e13d478746.tar.bz2 openbsd-a8537602a33c58670952fc29ef3a95e13d478746.zip |
- len is size_t, but n uses len and is an int. Matching those types
should be good, plus it prevents weird things from happening if
len > INT_MAX.
- Since n is now size_t, compare it against 0 instead of >= 0.
- temp is used to store individual bytes, so use char instead
(matches fp and tp).
- millert noted that the comma operator may not guarantee order of
execution, so replace with semicolons.
Found by lint, OK millert.
Diffstat (limited to 'src/lib/libc/crypt/arc4random.c')
0 files changed, 0 insertions, 0 deletions