summaryrefslogtreecommitdiff
path: root/src/librandom/surf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/librandom/surf.c')
-rw-r--r--src/librandom/surf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/librandom/surf.c b/src/librandom/surf.c
index d226249..166f3c4 100644
--- a/src/librandom/surf.c
+++ b/src/librandom/surf.c
@@ -2,6 +2,7 @@
#include <string.h>
#include <stdint.h>
+
#include <skalibs/uint32.h>
#include <skalibs/surf.h>
@@ -14,7 +15,7 @@ static void surfit (SURFSchedule *ctx)
uint32_t z[8] ;
uint32_t x ;
uint32_t sum = 0 ;
- unsigned int i = 0, loop = 0 ; ;
+ uint32_t i = 0, loop = 0 ; ;
if (!++ctx->in[0] && !++ctx->in[1] && !++ctx->in[2]) ++ctx->in[3] ;
for (; i < 12 ; i++) t[i] = ctx->in[i] ^ ctx->seed[12+i] ;