diff options
author | Niels Möller <nisse@lysator.liu.se> | 2013-04-26 10:53:36 +0200 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2013-04-26 10:53:36 +0200 |
commit | eb7c996e529a49b5eedeb064df275378486987d7 (patch) | |
tree | f994f68060f3f7d6d051035a3d50da8f589b9af3 /knuth-lfib.c | |
parent | 220812bc32bbe7abeaacb80b8845f226ee2cd90e (diff) | |
download | nettle-eb7c996e529a49b5eedeb064df275378486987d7.tar.gz |
Use size_t rather than unsigned for randomness related functions.
Diffstat (limited to 'knuth-lfib.c')
-rw-r--r-- | knuth-lfib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/knuth-lfib.c b/knuth-lfib.c index e07c7af6..6f7bd623 100644 --- a/knuth-lfib.c +++ b/knuth-lfib.c @@ -117,7 +117,7 @@ knuth_lfib_get(struct knuth_lfib_ctx *ctx) /* NOTE: Not at all optimized. */ void knuth_lfib_get_array(struct knuth_lfib_ctx *ctx, - unsigned n, uint32_t *a) + size_t n, uint32_t *a) { unsigned i; @@ -128,7 +128,7 @@ knuth_lfib_get_array(struct knuth_lfib_ctx *ctx, /* NOTE: Not at all optimized. */ void knuth_lfib_random(struct knuth_lfib_ctx *ctx, - unsigned n, uint8_t *dst) + size_t n, uint8_t *dst) { /* Use 24 bits from each number, xoring together some of the bits. */ |