]> www.fi.muni.cz Git - evince.git/commitdiff
[dvi] Use ANSI C rand() instead of random()
authorHib Eris <hib@hiberis.nl>
Tue, 5 Jan 2010 11:39:38 +0000 (12:39 +0100)
committerHib Eris <hib@hiberis.nl>
Wed, 27 Jan 2010 16:27:22 +0000 (17:27 +0100)
backend/dvi/mdvi-lib/dviread.c

index d696d8a6f26248d94bf435bb491d79362c43bddd..285524e2ea1f5acb52605b9c5d305571c8f80602 100644 (file)
@@ -359,7 +359,7 @@ static int sort_down(const void *p1, const void *p2)
 }
 static int sort_random(const void *p1, const void *p2)
 {
-       return (random() % 1) ? -1 : 1;
+       return (rand() % 1) ? -1 : 1;
 }
 static int sort_dvi_up(const void *p1, const void *p2)
 {