From: Matthew Fernandez Date: Wed, 30 Mar 2022 04:17:48 +0000 (-0700) Subject: gvgen makeRandom: squash a 'time_t'→'unsigned' conversion warning X-Git-Tag: 4.0.0~143^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=96cf0b23edb64c8f8d6d452c4d6ff501f8691217;p=graphviz gvgen makeRandom: squash a 'time_t'→'unsigned' conversion warning --- diff --git a/cmd/tools/graph_generator.c b/cmd/tools/graph_generator.c index b23b51392..12cbe3e30 100644 --- a/cmd/tools/graph_generator.c +++ b/cmd/tools/graph_generator.c @@ -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