crypto: lower bloom filter error rate

before patch:
full bloom filter error rate before reset 1-(1-1e-6)^5e5=1-0.606=0.394

after patch:
1-(1-1e-10)^5e5=1-0.99995=5e-5
This commit is contained in:
babarosaM33
2020-01-29 16:31:14 +08:00
parent b6a83d9497
commit 88c4d2aaab
+1 -1
View File
@@ -80,7 +80,7 @@ typedef mbedtls_md_info_t digest_type_t;
#endif
#ifndef BF_ERROR_RATE_FOR_SERVER
#define BF_ERROR_RATE_FOR_SERVER 1e-6
#define BF_ERROR_RATE_FOR_SERVER 1e-10
#endif
#ifndef BF_ERROR_RATE_FOR_CLIENT