Changeset: a8c71e1fad77 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/a8c71e1fad77
Branch: ppbench
Log Message:

merged with pp_hashjoin


diffs (14 lines):

diff --git a/gdk/gdk_sketch.c b/gdk/gdk_sketch.c
--- a/gdk/gdk_sketch.c
+++ b/gdk/gdk_sketch.c
@@ -132,8 +132,8 @@ sketch_populate(BAT* b, BATiter *bi, str
                } else {
                        uint8_t k = cnting_sketch[bucket][clz] - 128;
                        uint64_t rng;
-                       getentropy(&rng, sizeof(rng));
-                       if ((rng & ((1ULL << k) - 1)) == 0)
+                       if (getentropy(&rng, sizeof(rng)) == 0 &&
+                          (rng & ((1ULL << k) - 1)) == 0)
                                cnting_sketch[bucket][clz]++;
                }
        }
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to