diff options
| author | Tobias Klauser <tklauser@distanz.ch> | 2013-08-11 15:22:33 +0200 |
|---|---|---|
| committer | Tobias Klauser <tklauser@distanz.ch> | 2013-08-11 15:22:33 +0200 |
| commit | 786f0254af9c7d4b66357a100810ad89708863c4 (patch) | |
| tree | d9ee1cc654bebd484b9f1f035197702ce4fcd9d1 | |
| parent | 117f67fc6d197ccaddfeffdff49f81e2dd72ccae (diff) | |
rnd: Change parameter type in randombytes_{weak,strong}
Change parameter type for the length to size_t since this is what is
passed to them and is expected by read_exact().
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
| -rw-r--r-- | rnd.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -10,7 +10,7 @@ static int fdw = -1; -static void randombytes_weak(unsigned char *x, unsigned long long xlen) +static void randombytes_weak(unsigned char *x, size_t xlen) { int ret; @@ -40,7 +40,7 @@ static void randombytes_weak(unsigned char *x, unsigned long long xlen) } } -static void randombytes_strong(unsigned char *x, unsigned long long xlen) +static void randombytes_strong(unsigned char *x, size_t xlen) { int fds, ret; |
