diff --git a/test/testspriteminimal.c b/test/testspriteminimal.c index 36ea373b0..6be99fd4a 100644 --- a/test/testspriteminimal.c +++ b/test/testspriteminimal.c @@ -117,7 +117,7 @@ main(int argc, char *argv[]) } /* Initialize the sprite positions */ - srand(time(NULL)); + srand((unsigned int)time(NULL)); for (i = 0; i < NUM_SPRITES; ++i) { positions[i].x = rand() % (WINDOW_WIDTH - sprite_w); positions[i].y = rand() % (WINDOW_HEIGHT - sprite_h);