summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--image/test_formats.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/image/test_formats.c b/image/test_formats.c
index b03673b..185492a 100644
--- a/image/test_formats.c
+++ b/image/test_formats.c
@@ -43,7 +43,7 @@ color (uint32_t depth, uint32_t x, uint32_t y)
uint32_t p;
if (depth == 1) {
- int frac = random() % (WIDTH * HEIGHT);
+ int frac = rand() % (WIDTH * HEIGHT);
p = x * y >= frac;
return p;
}