diff options
Diffstat (limited to 'src/modules/roto')
-rw-r--r-- | src/modules/roto/roto.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/modules/roto/roto.c b/src/modules/roto/roto.c index 06a9e11..1dafd53 100644 --- a/src/modules/roto/roto.c +++ b/src/modules/roto/roto.c @@ -33,7 +33,16 @@ static color_t palette[2]; static void * roto_create_context(unsigned ticks, unsigned n_cpus, til_setup_t *setup) { - return calloc(1, sizeof(roto_context_t)); + roto_context_t *ctxt; + + ctxt = calloc(1, sizeof(roto_context_t)); + if (!ctxt) + return NULL; + + ctxt->r = rand(); + ctxt->rr = rand(); + + return ctxt; } |