From 28a0b44e400e2408b65b2bad9a137ec4fc21516d Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Thu, 14 Apr 2022 16:56:07 -0700 Subject: modules/*: remove srand() initializations Just rely on til_init()'s srand() ensuring things are fresh. --- src/modules/pixbounce/pixbounce.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/modules/pixbounce/pixbounce.c') diff --git a/src/modules/pixbounce/pixbounce.c b/src/modules/pixbounce/pixbounce.c index d016ff7..6585053 100644 --- a/src/modules/pixbounce/pixbounce.c +++ b/src/modules/pixbounce/pixbounce.c @@ -117,8 +117,6 @@ static void * pixbounce_create_context(unsigned ticks, unsigned num_cpus, void * if (!ctxt) return NULL; - srand(time(NULL) + getpid()); - ctxt->n_cpus = num_cpus; ctxt->x = 0; ctxt->y = 8; -- cgit v1.2.1