git: csprng: Make use of the CSPRNG_UNLIMITED flag

Aaron LI aly at crater.dragonflybsd.org
Sat Nov 11 00:02:18 PST 2023


commit 1b78bc1e74a34a990731ebbd36d2bb40f0117041
Author: Aaron LI <aly at aaronly.me>
Date:   Wed Nov 8 09:26:12 2023 +0800

    csprng: Make use of the CSPRNG_UNLIMITED flag
    
    Update csprng_get_random() to make use of its 'flags' parameter with the
    existing CSPRNG_UNLIMITED (was unused), and thus remove the redundant
    'unlimited' parameter.
    
    Update the function comments accordingly.

Summary of changes:
 sys/kern/kern_nrandom.c |  6 ++++--
 sys/kern/subr_csprng.c  | 12 ++++--------
 sys/sys/csprng.h        |  4 ++--
 3 files changed, 10 insertions(+), 12 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/1b78bc1e74a34a990731ebbd36d2bb40f0117041


-- 
DragonFly BSD source repository


More information about the Commits mailing list