Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/games/tetris/tetris.h,v rcsdiff: /ftp/cvs/cvsroot/src/games/tetris/tetris.h,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.15 retrieving revision 1.16 diff -u -p -r1.15 -r1.16 --- src/games/tetris/tetris.h 2016/03/03 21:38:55 1.15 +++ src/games/tetris/tetris.h 2020/07/21 02:42:05 1.16 @@ -1,4 +1,4 @@ -/* $NetBSD: tetris.h,v 1.15 2016/03/03 21:38:55 nat Exp $ */ +/* $NetBSD: tetris.h,v 1.16 2020/07/21 02:42:05 nia Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -130,7 +130,7 @@ struct shape { }; extern const struct shape shapes[]; -#define randshape() (&shapes[random() % 7]) +#define randshape() (&shapes[arc4random_uniform(7)]) extern const struct shape *nextshape;