mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-11 09:50:12 +00:00
Remove support of ancient (pre-8.0R, 800041) FreeBSD releases.
MFC after: 2 weeks
This commit is contained in:
parent
bd47c7ec11
commit
65d3abd5e4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=288970
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user