* [PATCH 5/7] make r an int to avoid unintended behavior
@ 2015-03-16 20:26 tyson.w.smith
0 siblings, 0 replies; only message in thread
From: tyson.w.smith @ 2015-03-16 20:26 UTC (permalink / raw)
To: davej; +Cc: trinity, tysmith, Tyson Smith
From: Tyson Smith <tyson.w.smith@gmail.com>
---
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-03-16 20:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-16 20:26 [PATCH 5/7] make r an int to avoid unintended behavior tyson.w.smith
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).