diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | rand.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2014-12-17 Kaz Kylheku <kaz@kylheku.com> + + * rand.c (struct rand_state): Change cur member to unsigned. + This generates better code for rand32. + 2014-12-16 Kaz Kylheku <kaz@kylheku.com> * rand.c (rstate): New inline function. @@ -59,7 +59,7 @@ typedef unsigned long rand32_t; */ struct rand_state { rand32_t state[16]; - int cur; + unsigned cur; }; val random_state_s; |