From daddaad694537d576671bfd563f0cc666777ba91 Mon Sep 17 00:00:00 2001 From: iphydf Date: Sun, 3 Nov 2024 13:58:17 +0000 Subject: [PATCH] chore: Add `randombytes_random` to allowed functions. See https://github.com/TokTok/c-toxcore/pull/2651 --- src/Tokstyle/Linter/Callgraph.hs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Tokstyle/Linter/Callgraph.hs b/src/Tokstyle/Linter/Callgraph.hs index fc83047..ef117e7 100644 --- a/src/Tokstyle/Linter/Callgraph.hs +++ b/src/Tokstyle/Linter/Callgraph.hs @@ -383,6 +383,7 @@ analyse = reverse . flip State.execState [] . linter . (builtins <>) . callgraph , "crypto_verify_64" , "randombytes" , "randombytes_stir" + , "randombytes_random" , "randombytes_uniform" , "sodium_init" , "sodium_memzero"