summaryrefslogtreecommitdiffhomepage
path: root/examples/list.c
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2020-07-28 14:58:20 +0200
committerTyge Løvset <[email protected]>2020-07-28 14:58:20 +0200
commit4b14954ce30ea7c5e63a49c50294bcec5978bbcd (patch)
treed8e64c8a5563b4d5730c3611176b6561c9e91a1e /examples/list.c
parent3112061bd5cc45a175f230ef3458a4bc06c5c5a2 (diff)
downloadSTC-modified-4b14954ce30ea7c5e63a49c50294bcec5978bbcd.tar.gz
STC-modified-4b14954ce30ea7c5e63a49c50294bcec5978bbcd.zip
Updated random
Diffstat (limited to 'examples/list.c')
-rw-r--r--examples/list.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/list.c b/examples/list.c
index 53b8711f..09b20b8c 100644
--- a/examples/list.c
+++ b/examples/list.c
@@ -6,10 +6,10 @@ declare_CList(ix, uint64_t);
int main() {
CList_ix list = clist_init;
- crandom32_t pcg = crandom32_init(time(NULL));
+ CRand32 pcg = crand32_init(time(NULL));
int n;
for (int i=0; i<10000000; ++i) // ten million
- clist_ix_pushBack(&list, crandom32(&pcg));
+ clist_ix_pushBack(&list, crand32_gen(&pcg));
n = 100;
c_foreach (i, clist_ix, list)
if (n--) printf("%8d: %10zu\n", 100 - n, i.item->value); else break;