aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/thr_self.2
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2016-05-29 13:57:06 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2016-05-29 13:57:06 +0000
commit44f87738345ccf7da818c80cefac28916928bebb (patch)
tree020ce8af9169c68a628aea7412b56f238f713457 /lib/libc/sys/thr_self.2
parent864a391104a28af650240dc9f056a8862944b52f (diff)
downloadsrc-44f87738345ccf7da818c80cefac28916928bebb.tar.gz
src-44f87738345ccf7da818c80cefac28916928bebb.zip
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). MFC after: 1 week
Notes
Notes: svn path=/head/; revision=300956
Diffstat (limited to 'lib/libc/sys/thr_self.2')
0 files changed, 0 insertions, 0 deletions