Remove support of ancient (pre-8.0R, 800041) FreeBSD releases.

MFC after:	2 weeks
This commit is contained in:
Xin LI 2015-10-07 01:25:47 +00:00
parent bd47c7ec11
commit 65d3abd5e4

View File

@ -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;