summaryrefslogtreecommitdiffhomepage
path: root/examples/list.c
diff options
context:
space:
mode:
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 fd923719..b9f56f13 100644
--- a/examples/list.c
+++ b/examples/list.c
@@ -12,8 +12,8 @@ int main() {
c_auto (clist_fx, list)
{
- stc64_t rng = stc64_init(1234);
- stc64_uniformf_t dist = stc64_uniformf_init(100.0f, n);
+ stc64_t rng = stc64_new(1234);
+ stc64_uniformf_t dist = stc64_uniformf_new(100.0f, n);
int m = 0;
c_forrange (i, int, n)
clist_fx_push_back(&list, stc64_uniformf(&rng, &dist)), ++m;