summaryrefslogtreecommitdiff
path: root/src/lib/libc/crypt/arc4random.c
diff options
context:
space:
mode:
authorotto <>2022-02-26 16:14:42 +0000
committerotto <>2022-02-26 16:14:42 +0000
commitc5273921395aa49c913ac5a1325c7eb78a50292c (patch)
treeeedb761db3c5aebae973ef73ef1f63a888027635 /src/lib/libc/crypt/arc4random.c
parent241f81f05560b5b5be14de78e45d18c5a5899b06 (diff)
downloadopenbsd-c5273921395aa49c913ac5a1325c7eb78a50292c.tar.gz
openbsd-c5273921395aa49c913ac5a1325c7eb78a50292c.tar.bz2
openbsd-c5273921395aa49c913ac5a1325c7eb78a50292c.zip
Currently malloc caches a number of free'ed regions up to 128k
in size. This cache is indexed by size (in # of pages), so it is very quick to check. Some programs allocate and deallocate larger allocations in a frantic way. Accomodate those programs by also keeping a cache of regions between 128k and 2M, in a cache of variable sized regions. Tested by many in snaps; ok deraadt@
Diffstat (limited to 'src/lib/libc/crypt/arc4random.c')
0 files changed, 0 insertions, 0 deletions