From owner-svn-src-all@freebsd.org Wed Oct 7 01:25:49 2015 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1990E9D1D93; Wed, 7 Oct 2015 01:25:49 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D47CCDB7; Wed, 7 Oct 2015 01:25:48 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t971PlKf014949; Wed, 7 Oct 2015 01:25:47 GMT (envelope-from delphij@FreeBSD.org) Received: (from delphij@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t971PlvA014948; Wed, 7 Oct 2015 01:25:47 GMT (envelope-from delphij@FreeBSD.org) Message-Id: <201510070125.t971PlvA014948@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: delphij set sender to delphij@FreeBSD.org using -f From: Xin LI Date: Wed, 7 Oct 2015 01:25:47 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r288970 - head/usr.bin/fortune/strfile X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Oct 2015 01:25:49 -0000 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;