Date: Wed, 7 Oct 2015 01:25:47 +0000 (UTC) From: Xin LI <delphij@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r288970 - head/usr.bin/fortune/strfile Message-ID: <201510070125.t971PlvA014948@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: delphij Date: Wed Oct 7 01:25:47 2015 New Revision: 288970 URL: https://svnweb.freebsd.org/changeset/base/288970 Log: Remove support of ancient (pre-8.0R, 800041) FreeBSD releases. MFC after: 2 weeks Modified: head/usr.bin/fortune/strfile/strfile.c Modified: head/usr.bin/fortune/strfile/strfile.c ============================================================================== --- head/usr.bin/fortune/strfile/strfile.c Wed Oct 7 00:50:26 2015 (r288969) +++ head/usr.bin/fortune/strfile/strfile.c Wed Oct 7 01:25:47 2015 (r288970) @@ -438,10 +438,6 @@ randomize(void) off_t tmp; off_t *sp; -#if __FreeBSD_version < 800041 - srandomdev(); -#endif - Tbl.str_flags |= STR_RANDOM; cnt = Tbl.str_numstr; @@ -450,11 +446,7 @@ randomize(void) */ for (sp = Seekpts; cnt > 0; cnt--, sp++) { -#if __FreeBSD_version < 800041 - i = random() % cnt; -#else i = arc4random_uniform(cnt); -#endif tmp = sp[0]; sp[0] = sp[i]; sp[i] = tmp;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510070125.t971PlvA014948>