diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2014-12-20 12:34:14 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2014-12-20 12:34:14 +0000 |
commit | 0d82edd9f8bebb396a9154d4e1003340dbf6b967 (patch) | |
tree | 0659c834f387f3504944a610ed6858b9e268e6c7 /src/librandom/surf.c | |
parent | 2436785702b47996e9f0e281df0d6027660ec914 (diff) | |
download | skalibs-0d82edd9f8bebb396a9154d4e1003340dbf6b967.tar.xz |
Lots of cosmetic fixes.
sha256 documented.
Diffstat (limited to 'src/librandom/surf.c')
-rw-r--r-- | src/librandom/surf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librandom/surf.c b/src/librandom/surf.c index 1687df9..ad0aab1 100644 --- a/src/librandom/surf.c +++ b/src/librandom/surf.c @@ -7,7 +7,7 @@ #define ROTATE(x, b) (((x) << (b)) | ((x) >> (32 - (b)))) #define MUSH(i, b) x = t[i] += (((x ^ ctx->seed[i]) + sum) ^ ROTATE(x, b)) -static void surfit (SURFSchedule_ref ctx) +static void surfit (SURFSchedule *ctx) { uint32 t[12] ; uint32 z[8] ; @@ -33,7 +33,7 @@ static void surfit (SURFSchedule_ref ctx) for (i = 0 ; i < 8 ; i++) uint32_pack(ctx->out + (i<<2), z[i]) ; } -void surf (SURFSchedule_ref ctx, char *s, unsigned int n) +void surf (SURFSchedule *ctx, char *s, unsigned int n) { { register unsigned int i = 32 - ctx->pos ; |