diff options
Diffstat (limited to 'src/modules/roto')
-rw-r--r-- | src/modules/roto/roto.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/roto/roto.c b/src/modules/roto/roto.c index 0969929..8908bd2 100644 --- a/src/modules/roto/roto.c +++ b/src/modules/roto/roto.c @@ -39,8 +39,8 @@ static void * roto_create_context(unsigned seed, unsigned ticks, unsigned n_cpus if (!ctxt) return NULL; - ctxt->r = rand(); - ctxt->rr = rand(); + ctxt->r = rand_r(&seed); + ctxt->rr = rand_r(&seed); return ctxt; } |