[tor-commits] [tor/master] Fix wrong bases.

nickm at torproject.org nickm at torproject.org
Mon Jan 14 19:50:35 UTC 2019


commit 9728d3f8ac395d7157d30f9b73117b58d704432c
Author: Taylor R Campbell <campbell+tor at mumble.net>
Date:   Thu Jan 10 18:11:36 2019 +0000

    Fix wrong bases.
---
 src/core/or/circuitpadding.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/core/or/circuitpadding.c b/src/core/or/circuitpadding.c
index 408061433..36fcbb503 100644
--- a/src/core/or/circuitpadding.c
+++ b/src/core/or/circuitpadding.c
@@ -551,7 +551,7 @@ circpad_distribution_sample(circpad_distribution_t dist)
       {
       /* param1 is Mu, param2 is sigma. */
         const struct logistic my_logistic = {
-          .base = LOGISTIC(my_uniform),
+          .base = LOGISTIC(my_logistic),
           .mu = dist.param1,
           .sigma = dist.param2,
         };
@@ -590,7 +590,7 @@ circpad_distribution_sample(circpad_distribution_t dist)
       {
         /* param1 is sigma, param2 is xi, no more params for mu so we use 0 */
         const struct genpareto my_genpareto = {
-          .base = GENPARETO(my_weibull),
+          .base = GENPARETO(my_genpareto),
           .mu = 0,
           .sigma = dist.param1,
           .xi = dist.param2,





More information about the tor-commits mailing list