summaryrefslogtreecommitdiffhomepage
path: root/examples/benchmark.c
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2020-07-29 16:02:04 +0200
committerTyge Løvset <[email protected]>2020-07-29 16:02:04 +0200
commit5dad12ce1a2dcd6bd9805c2f7eeb96f9dbe8aa48 (patch)
tree542b15e8dbf14a419128f9364c59768d073535c3 /examples/benchmark.c
parentb818bb967c6050d14a9c7058f02592a4ffeef9b4 (diff)
downloadSTC-modified-5dad12ce1a2dcd6bd9805c2f7eeb96f9dbe8aa48.tar.gz
STC-modified-5dad12ce1a2dcd6bd9805c2f7eeb96f9dbe8aa48.zip
Renamed crandom.h to crand.h + Changed API. Renamed coptget.h to copt.h.
Diffstat (limited to 'examples/benchmark.c')
-rw-r--r--examples/benchmark.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/benchmark.c b/examples/benchmark.c
index 568ba880..ea6c1794 100644
--- a/examples/benchmark.c
+++ b/examples/benchmark.c
@@ -1,4 +1,4 @@
-#include <stc/crandom.h>
+#include <stc/crand.h>
#include <stc/cstr.h>
#include <stc/cmap.h>
#include "others/khash.h"
@@ -21,9 +21,9 @@ KHASH_MAP_INIT_INT64(ii, uint64_t)
size_t seed;
static const float max_load_factor = 0.77f;
-crandom64_t rng;
-#define SEED(s) rng = crandom64_uniform_engine(seed)
-#define RAND(N) (crandom64_uniform_int(&rng) & ((1 << N) - 1))
+crand_eng64_t rng;
+#define SEED(s) rng = crand_eng64(seed)
+#define RAND(N) (crand_gen_i64(&rng) & ((1 << N) - 1))
#define CMAP_SETUP(tag, Key, Value) cmap_##tag map = cmap_init \