mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-02-10 09:21:09 +03:00
![]() In all places except two spa_get_random() is used for small values, and the consumers do not require well seeded high quality values. Switch those two exceptions directly to random_get_pseudo_bytes() and optimize spa_get_random(), renaming it to random_in_range(), since it is not related to SPA or ZFS in general. On FreeBSD directly map random_in_range() to new prng32_bounded() KPI added in FreeBSD 13. On Linux and in user-space just reduce the type used to uint32_t to avoid more expensive 64bit division. Reviewed-by: Ryan Moeller <ryan@iXsystems.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Alexander Motin <mav@FreeBSD.org> Sponsored-By: iXsystems, Inc. Closes #12183 |
||
---|---|---|
.. | ||
acl_impl.h | ||
acl.h | ||
atomic.h | ||
byteorder.h | ||
callb.h | ||
ccompat.h | ||
ccompile.h | ||
cmn_err.h | ||
condvar.h | ||
cred.h | ||
ctype.h | ||
debug.h | ||
dirent.h | ||
disp.h | ||
dkio.h | ||
extdirent.h | ||
fcntl.h | ||
file.h | ||
freebsd_rwlock.h | ||
idmap.h | ||
inttypes.h | ||
isa_defs.h | ||
kidmap.h | ||
kmem_cache.h | ||
kmem.h | ||
kstat.h | ||
list_impl.h | ||
list.h | ||
lock.h | ||
Makefile.am | ||
misc.h | ||
mod_os.h | ||
mode.h | ||
mount.h | ||
mutex.h | ||
param.h | ||
policy.h | ||
proc.h | ||
processor.h | ||
procfs_list.h | ||
random.h | ||
rwlock.h | ||
sdt.h | ||
sid.h | ||
sig.h | ||
simd_x86.h | ||
simd.h | ||
spl_condvar.h | ||
string.h | ||
strings.h | ||
sunddi.h | ||
sysmacros.h | ||
systeminfo.h | ||
systm.h | ||
taskq.h | ||
thread.h | ||
time.h | ||
timer.h | ||
trace_zfs.h | ||
trace.h | ||
types32.h | ||
types.h | ||
uio.h | ||
uuid.h | ||
vfs.h | ||
vm.h | ||
vmsystm.h | ||
vnode_impl.h | ||
vnode.h | ||
wmsum.h | ||
zmod.h | ||
zone.h |