Skip to contentSkip to conversation

make r an int to avoid unintended behavior

PATCH In review [email protected] 1 participant 1 message Mar 16, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 5/7 make r an int to avoid unintended behavior

From: Tyson Smith <[email protected]>

---
 random.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
random.c +1 -1
index 8b8de04..bbfc8da 100644
@@ -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);
Signature · 1 line
1.9.1