summaryrefslogtreecommitdiffstats
path: root/rand.c
diff options
context:
space:
mode:
Diffstat (limited to 'rand.c')
-rw-r--r--rand.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/rand.c b/rand.c
index 5bbad186..7eff059b 100644
--- a/rand.c
+++ b/rand.c
@@ -64,13 +64,11 @@ struct rand_state {
val random_state_s;
-static struct cobj_ops random_state_ops = {
- eq,
- cobj_print_op,
- cobj_destroy_free_op,
- cobj_mark_op,
- cobj_hash_op
-};
+static struct cobj_ops random_state_ops = cobj_ops_init(eq,
+ cobj_print_op,
+ cobj_destroy_free_op,
+ cobj_mark_op,
+ cobj_hash_op);
static val make_state(void)
{