summaryrefslogtreecommitdiffhomepage
path: root/include/stc/clist.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-04-18 23:00:13 +0200
committerTyge Løvset <[email protected]>2022-04-18 23:00:13 +0200
commit1eddea1da0125ddad2f8804fadafd1494c1bb11a (patch)
tree2c38c69cd129edb88dc901a3e1197d177b1a6cf9 /include/stc/clist.h
parentc2ed81e1d1de503b9264e7c03bcc7087a270df94 (diff)
downloadSTC-modified-1eddea1da0125ddad2f8804fadafd1494c1bb11a.tar.gz
STC-modified-1eddea1da0125ddad2f8804fadafd1494c1bb11a.zip
Renamed stc64_random() => crandom(), stc64_srandom(seed) => csrandom(seed). Kept old names for backward comp.
Diffstat (limited to 'include/stc/clist.h')
-rw-r--r--include/stc/clist.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stc/clist.h b/include/stc/clist.h
index 88f41f4e..c3c15900 100644
--- a/include/stc/clist.h
+++ b/include/stc/clist.h
@@ -38,7 +38,7 @@
{
int n;
for (int i = 0; i < 1000000; ++i) // one million
- clist_ix_push_back(&list, stc64_random() >> 32);
+ clist_ix_push_back(&list, crandom() >> 32);
n = 0;
c_foreach (i, clist_ix, list)
if (++n % 10000 == 0) printf("%8d: %10zu\n", n, *i.ref);