summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/reallocarray.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2016-05-29 13:57:06 +0000
committerache <ache@FreeBSD.org>2016-05-29 13:57:06 +0000
commit7774e759a0799d7e4cb9c6f5e1087157ea3e662b (patch)
tree020ce8af9169c68a628aea7412b56f238f713457 /lib/libc/stdlib/reallocarray.c
parent1d0d6bd7d407210f948962451d0983efdeb2eaf7 (diff)
downloadFreeBSD-src-7774e759a0799d7e4cb9c6f5e1087157ea3e662b.zip
FreeBSD-src-7774e759a0799d7e4cb9c6f5e1087157ea3e662b.tar.gz
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
Diffstat (limited to 'lib/libc/stdlib/reallocarray.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud