[PATCH 5/7] make r an int to avoid unintended behavior
[email protected] Mon, 16 Mar 2015 13:26:32 -0700
| Newsgroups | org.kernel.vger.trinity |
|---|---|
| Message-ID | <[email protected]> |
From: Tyson Smith <[email protected]> --- random.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/random.c b/random.c index 8b8de04..bbfc8da 100644 --- a/random.c +++ b/random.c @@ -87,7 +87,7 @@ static unsigned long rept_byte(void) */ unsigned int rand32(void) { - unsigned long r = 0; + unsigned int r = 0; switch (rand() % 4) { case 0: r = rand_single_bit(32); -- 1.9.1