diff options
Diffstat (limited to 'mbbsd/vice.c')
-rw-r--r-- | mbbsd/vice.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/vice.c b/mbbsd/vice.c index 843d3e83..ef527b72 100644 --- a/mbbsd/vice.c +++ b/mbbsd/vice.c @@ -54,7 +54,7 @@ ran_showfile(int y, int x, char *filename, int maxnum) char buf[512]; bzero(buf, sizeof(buf)); - snprintf(buf, sizeof(buf), "%s%d", filename, rand() % maxnum + 1); + snprintf(buf, sizeof(buf), "%s%d", filename, random() % maxnum + 1); if (!(fs = fopen(buf, "r"))) { move(10, 10); prints("can't open file: %s", buf); @@ -74,7 +74,7 @@ ran_showmfile(char *filename, int maxnum) { char buf[256]; - snprintf(buf, sizeof(buf), "%s%d", filename, rand() % maxnum + 1); + snprintf(buf, sizeof(buf), "%s%d", filename, random() % maxnum + 1); return more(buf, YEA); } |