summaryrefslogtreecommitdiffhomepage
path: root/misc/examples/random.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/examples/random.c')
-rw-r--r--misc/examples/random.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/misc/examples/random.c b/misc/examples/random.c
index fe64290d..82214924 100644
--- a/misc/examples/random.c
+++ b/misc/examples/random.c
@@ -14,7 +14,7 @@ int main()
printf("Compare speed of full and unbiased ranged random numbers...\n");
sum = 0;
before = clock();
- c_forrange (N) {
+ c_FORRANGE (N) {
sum += (uint32_t)stc64_rand(&rng);
}
diff = clock() - before;
@@ -25,7 +25,7 @@ int main()
rng = stc64_new(seed);
sum = 0;
before = clock();
- c_forrange (N) {
+ c_FORRANGE (N) {
sum += stc64_uniform(&rng, &dist1); // unbiased
}
diff = clock() - before;
@@ -35,7 +35,7 @@ int main()
sum = 0;
rng = stc64_new(seed);
before = clock();
- c_forrange (N) {
+ c_FORRANGE (N) {
sum += stc64_rand(&rng) % (range + 1); // biased
}
diff = clock() - before;