]> granicus.if.org Git - graphviz/commitdiff
gvgen makeRandom: squash a 'time_t'→'unsigned' conversion warning
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 30 Mar 2022 04:17:48 +0000 (21:17 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 2 Apr 2022 16:20:14 +0000 (09:20 -0700)
cmd/tools/graph_generator.c

index b23b51392cfdd25087e9ed74b173aca9df48b4b2..12cbe3e30cdc697a563c016013aaaa4ee62d6948 100644 (file)
@@ -471,7 +471,7 @@ void makeRandom(int h, int w, edgefn ef)
 {
     int i, j, type, size, depth;
 
-    srand(time(0));
+    srand((unsigned)time(0));
     if (rand()%2==1)
        type = 1;
     else