gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lsd0004] branch master updated: cg comment bf code


From: gnunet
Subject: [lsd0004] branch master updated: cg comment bf code
Date: Wed, 01 Dec 2021 20:43:05 +0100

This is an automated email from the git hooks/post-receive script.

martin-schanzenbach pushed a commit to branch master
in repository lsd0004.

The following commit(s) were added to refs/heads/master by this push:
     new 36e0f46  cg comment bf code
36e0f46 is described below

commit 36e0f46cc61791abba53f8b2f12be0857b34d2d7
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Wed Dec 1 20:43:02 2021 +0100

    cg comment bf code
---
 draft-schanzen-r5n.xml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/draft-schanzen-r5n.xml b/draft-schanzen-r5n.xml
index 939ae41..5e19a40 100644
--- a/draft-schanzen-r5n.xml
+++ b/draft-schanzen-r5n.xml
@@ -415,9 +415,9 @@ END
        <figure>
          <artwork name="" type="" align="left" alt=""><![CDATA[
 BF-TEST(key, bloomfilter)
-  H_key := SHA512 (key)
+  H_key := SHA512 (key) as UINT32[]
   FOR i IN 0..15
-    bit := INT(H_key[i * k]) % 1024
+    bit := H_key[i] % 1024
     IF bloomfilter[bit] IS SET
       RETURN TRUE
     END
@@ -426,9 +426,9 @@ BF-TEST(key, bloomfilter)
 END
 
 BF-SET(key, bloomfilter)
-  H_key := SHA512 (key)
+  H_key := SHA512 (key) as UINT32[]
   FOR i IN 0..15
-    bit := INT(H_key[i * k]) % 1024
+    bit := H_key[i] % 1024
     bloomfilter[bit] := 1
   END
 END

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]