Document RAND_DRBG fork-safety locking model
authorBenjamin Kaduk <bkaduk@akamai.com>
Mon, 7 Aug 2017 14:55:48 +0000 (09:55 -0500)
committerBen Kaduk <kaduk@mit.edu>
Thu, 29 Mar 2018 14:04:23 +0000 (09:04 -0500)
commitf2633200eb223f9fe7453de24ecd2e4f657040d9
tree7f512619d518283dd7860c16ccaf690f9487f518
parentfffb1c5496e47dacc8245bd140f6955a31c5ea6f
Document RAND_DRBG fork-safety locking model

Add some more exposition on why unlocked access to the global rand_fork_count
is safe, and provide a comment for the struct rand_drbg_st fork_count field.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
(Merged from https://github.com/openssl/openssl/pull/4110)
crypto/rand/rand_lcl.h