From aed739f6e735273f46387871aa52824ac5aae3d7 Mon Sep 17 00:00:00 2001 From: IC Rainbow Date: Fri, 16 Feb 2024 20:40:22 +0200 Subject: [PATCH] fudge unused randombytes --- cbits/tweetnacl.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cbits/tweetnacl.c b/cbits/tweetnacl.c index 8ac0a1806..5f838b22b 100644 --- a/cbits/tweetnacl.c +++ b/cbits/tweetnacl.c @@ -7,7 +7,12 @@ typedef unsigned long u32; typedef unsigned long long u64; typedef long long i64; typedef i64 gf[16]; -extern void randombytes(u8 *,u64); +// extern void randombytes(u8 *,u64); +// fudge unused function +#include "string.h" +static void randombytes(u8 * dst, u64 len) { + memset(dst, 42, len); +} static const u8 _0[16],