freebsd-dev/usr.bin
Conrad Meyer 92f7ba208c random(6): Fix off-by-one
After r355693, random(6) -f sometimes fail to output all the lines of the
input file.  This is because the range from which random indices are chosen
is too big, so occasionally the random selection doesn't correspond to any
line and nothing gets printed.

(Ed. note: Mea culpa.  Working on r355693, I was confused by the sometime
use of 1-indexing, sometimes 0-indexing in randomize_fd().)

Submitted by:	Ryan Moeller <ryan AT freqlabs.com>
X-MFC-With:	r355693
Sponsored by:	iXsystems, Inc.
Differential Revision:	https://reviews.freebsd.org/D23199
2020-01-16 21:38:44 +00:00
..
addr2line
alias
apply
ar
asa
at
atm
awk
banner
basename
bc
biff
bluetooth
bmake
brandelf Update Makefile.depend files 2019-12-11 17:37:53 +00:00
bsdcat MFV r356163,r356197: 2019-12-31 00:05:06 +00:00
bsdiff
bzip2
bzip2recover
c89
c99
caesar
calendar Correct date and time of George Harrison's death. 2019-11-29 23:04:45 +00:00
cap_mkdb
chat
chkey Update Makefile.depend files 2019-12-11 17:37:53 +00:00
chpass Update Makefile.depend files 2019-12-11 17:37:53 +00:00
cksum
clang Move all sources from the llvm project into contrib/llvm-project. 2019-12-20 19:53:05 +00:00
cmp
col
colrm
column
comm
compile_et
compress
cpio MFV r356163,r356197: 2019-12-31 00:05:06 +00:00
cpuset
csplit
ctags
ctlstat
cut
cxxfilt
dc
diff Do not skip line-by-line comparison if -q and -I are specified. 2020-01-14 15:35:03 +00:00
diff3 Replace homemade getline(3) by actual getline(3) 2019-12-17 11:03:32 +00:00
dirname
dpv
drill
dtc dtc: Allow multiple dts-v1 tag 2019-10-26 17:10:27 +00:00
du
ee
elf2aout
elfdump
enigma
env Add -0 option to ENV(1) 2019-11-07 17:14:59 +00:00
etdump
expand
factor Fix the way 'factor' behaves when using OpenSSL to match the description 2020-01-12 20:25:11 +00:00
false
fetch
file
file2c
find
finger
fmt
fold
fortune
from
fstat Grammar fix. 2019-10-28 21:48:20 +00:00
fsync
ftp
gcore gcore: Avoid using vm_map_entry_t. 2019-12-07 20:01:55 +00:00
gencat
getaddrinfo
getconf
getent
getopt
gprof gprof: Enable riscv 2020-01-13 16:52:26 +00:00
grdc
grep Update Makefile.depend files 2019-12-11 17:37:53 +00:00
gzip Update Makefile.depend files 2019-12-11 17:37:53 +00:00
head Update Makefile.depend files 2019-12-11 17:37:53 +00:00
hesinfo
hexdump
host
iconv
id
ident
indent
ipcrm
ipcs
iscsictl
join
jot
kdump Update Makefile.depend files 2019-12-11 17:37:53 +00:00
keylogin
keylogout
killall Revert r352953: Convert pnmatch to single element array in regexec calls 2019-10-02 16:08:01 +00:00
ktrace
ktrdump
lam
last
lastcomm
ldd
ldd32 libcompat: Correct rtld MLINKS 2019-11-12 22:31:59 +00:00
leave
less
lessecho
lesskey
lex Update Makefile.depend files 2019-12-11 17:37:53 +00:00
limits
locale
localedef
locate
lock
lockf
logger
login Update Makefile.depend files 2019-12-11 17:37:53 +00:00
logins
logname
look
lorder
lsvfs
lzmainfo
m4
mail
man
mandoc
mesg
minigzip
ministat Improve the way we calculate variance to reduce the rounding errors 2019-10-18 07:55:01 +00:00
mkcsmapper
mkcsmapper_static
mkdep
mkesdb
mkesdb_static
mkfifo
mkimg Allow bootstrapping mkimg on macOS/Linux 2020-01-16 14:14:55 +00:00
mkstr
mktemp
mkuzip
morse
msgs
mt
nc Add -M option to nc(1), which makes it print the TCP connection 2019-12-14 10:53:52 +00:00
ncal
netstat Convert routing statistics to VNET_PCPUSTAT. 2019-12-17 02:02:26 +00:00
newgrp
newkey
nfsstat Update the man page to reflect that "-M" and "-N" are deprecated and ignored. 2019-12-31 22:25:06 +00:00
nice
nl
nm Update Makefile.depend files 2019-12-11 17:37:53 +00:00
nohup
number
objcopy
ofed
opieinfo
opiekey
opiepasswd
pagesize
pamtest
passwd
paste
patch patch(1): give /dev/null patches special treatment 2019-11-04 03:07:01 +00:00
pathchk
perror
pom
posixshmcontrol
pr
primes Fix the way 'factor' behaves when using OpenSSL to match the description 2020-01-12 20:25:11 +00:00
printenv
printf
proccontrol
procstat Remove IS_INADDR_ANY(). 2019-10-19 19:38:53 +00:00
protect
quota
random random(6): Fix off-by-one 2020-01-16 21:38:44 +00:00
rctl
readelf Update Makefile.depend files 2019-12-11 17:37:53 +00:00
renice
resizewin
rev
revoke
rpcgen rpcgen: make compiler arglist allocation dynamic 2019-10-15 16:05:17 +00:00
rpcinfo
rs
rup
ruptime
rusers
rwall
rwho
script
sdiff
sdiotool
sed sed: process \r, \n, and \t 2019-12-10 19:16:00 +00:00
seq
setchannel
shar
showmount [showmount] implement long options 2019-12-12 05:11:53 +00:00
size Update Makefile.depend files 2019-12-11 17:37:53 +00:00
smbutil
sockstat
soelim
sort Update Makefile.depend files 2019-12-11 17:37:53 +00:00
split Revert r352953: Convert pnmatch to single element array in regexec calls 2019-10-02 16:08:01 +00:00
ssh-copy-id
stat
stdbuf
strings Update Makefile.depend files 2019-12-11 17:37:53 +00:00
su Update Makefile.depend files 2019-12-11 17:37:53 +00:00
svn
systat Sync with r356645. desiredvnodes is now maxvnodes. 2020-01-13 06:55:38 +00:00
tabs
tail Update Makefile.depend files 2019-12-11 17:37:53 +00:00
talk
tar MFV r356163,r356197: 2019-12-31 00:05:06 +00:00
tcopy
tee
telnet Update Makefile.depend files 2019-12-11 17:37:53 +00:00
tests
tftp tftp: fix two minor Coverity CIDs 2019-10-03 20:22:25 +00:00
time
timeout
tip tip/cu: check for EOF on input on the local side 2019-11-11 17:41:52 +00:00
top top: display battery capacity remaining 2019-12-21 05:03:21 +00:00
touch
tput
tr
true
truncate
truss truss: centralize pointer-constructing casts. 2019-10-31 22:29:13 +00:00
tset
tsort
tty
ul
uname
unexpand
unifdef Re-apply fixed r354847 2019-11-20 19:43:34 +00:00
uniq Support --all-repeats in uniq(1) for compatibility with gnu coreutils. 2019-12-15 18:05:18 +00:00
units
unvis
unzip
usbhidaction
usbhidctl
users
uudecode
uuencode
vacation
vgrind
vi
vis
vmstat Move type casts into a single place. No functional changes. 2019-12-29 12:24:41 +00:00
vtfontcvt
w
wall
wc Update Makefile.depend files 2019-12-11 17:37:53 +00:00
what
whereis
which
who
whois
write
xargs
xinstall Allow boostrapping xinstall on Linux 2019-11-20 17:24:49 +00:00
xo Allow proper builds of libxo's CSV encoder: 2019-12-16 22:05:03 +00:00
xohtml Import libxo-1.3.1: 2019-11-07 18:06:44 +00:00
xolint
xopo
xstr
xz
xzdec
yacc
yes
ypcat
ypmatch
ypwhich
zstd
Makefile gprof: Enable riscv 2020-01-13 16:52:26 +00:00
Makefile.amd64
Makefile.arm
Makefile.i386
Makefile.inc
Makefile.powerpc
Makefile.sparc64