summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_exit.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2016-06-05 14:31:36 +0000
committerache <ache@FreeBSD.org>2016-06-05 14:31:36 +0000
commit29301f8121c8d897630c280668ea9a3c61b1f7d2 (patch)
tree61968c856608ab8e301e746f247a45e07f4262fc /sys/kern/kern_exit.c
parent199f28605719d4605c984cbf1df952f98c347a42 (diff)
downloadFreeBSD-src-29301f8121c8d897630c280668ea9a3c61b1f7d2.zip
FreeBSD-src-29301f8121c8d897630c280668ea9a3c61b1f7d2.tar.gz
MFC: r300956
1) Unifdef USE_WEAK_SEEDING since it is too obsolete to support and makes reading hard. 2) Instead of doing range transformation in each and every function here, do it single time directly in do_rand(). One "mod" operation overhead is not a big deal, but the code looks nicer and possible future functions additions or PRNG change do not miss range transformations neither have unneeded ones. 3) Use POSIX argument types for visible functions (cosmetic).
Diffstat (limited to 'sys/kern/kern_exit.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud