Module Name:    xsrc
Committed By:   christos
Date:           Sat Sep  5 14:03:11 UTC 2015

Modified Files:
        xsrc/external/mit/ctwm/dist: menus.c

Log Message:
CID 1322884: Annotate random use


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 xsrc/external/mit/ctwm/dist/menus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/ctwm/dist/menus.c
diff -u xsrc/external/mit/ctwm/dist/menus.c:1.4 xsrc/external/mit/ctwm/dist/menus.c:1.5
--- xsrc/external/mit/ctwm/dist/menus.c:1.4	Sat Sep  5 04:07:53 2015
+++ xsrc/external/mit/ctwm/dist/menus.c	Sat Sep  5 10:03:11 2015
@@ -5003,7 +5003,9 @@ void MosaicFade (TwmWindow *tmp_win, Win
     }
     for (i = 0; i < 10; i++) {
 	for (j = 0; j < nrects; j++) {
+	    /* coverity[dc.weak_crypto] */
 	    rectangles [j].x = ((lrand48 () %  width) / srect) * srect;
+	    /* coverity[dc.weak_crypto] */
 	    rectangles [j].y = ((lrand48 () % height) / srect) * srect;
 	}
 	XFillRectangles (dpy, mask, gc, rectangles, nrects);

Reply via email to