From 8d77e6597ccc9fda7dc2842585b4717ba4104ed4 Mon Sep 17 00:00:00 2001 From: Miguel Oliveira Date: Fri, 9 Jun 2023 21:23:02 -0300 Subject: [PATCH] Check argument types in random.mix --- ccryptolib/random.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/ccryptolib/random.lua b/ccryptolib/random.lua index 856d1c4..65656f2 100644 --- a/ccryptolib/random.lua +++ b/ccryptolib/random.lua @@ -30,6 +30,7 @@ end --- Mixes extra entropy into the generator state. --- @param data string The additional entropy to mix. local function mix(data) + expect(1, data, "string") state = blake3.digestKeyed(state, data) end