summaryrefslogtreecommitdiff
path: root/rnd.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2013-08-11 15:22:33 +0200
committerTobias Klauser <tklauser@distanz.ch>2013-08-11 15:22:33 +0200
commit786f0254af9c7d4b66357a100810ad89708863c4 (patch)
treed9ee1cc654bebd484b9f1f035197702ce4fcd9d1 /rnd.c
parent117f67fc6d197ccaddfeffdff49f81e2dd72ccae (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>
Diffstat (limited to 'rnd.c')
-rw-r--r--rnd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rnd.c b/rnd.c
index 7dd36a3..bc72c97 100644
--- a/rnd.c
+++ b/rnd.c
@@ -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;