Module Name: src Committed By: riastradh Date: Thu Mar 6 00:53:27 UTC 2025
Modified Files: src/lib/libc/gen: arc4random.c src/lib/libc/include: arc4random.h Log Message: arc4random(3): Switch to use thr_once (libc pthread_once symbol). This way, we reduce the problem of arc4random initialization fork-safety to the problem of pthread_once fork-safety -- and anything else to do with one-time lazy initialization. PR lib/59124: arc4random(3): first call in process races with concurrent fork To generate a diff of this commit: cvs rdiff -u -r1.43 -r1.44 src/lib/libc/gen/arc4random.c cvs rdiff -u -r1.2 -r1.3 src/lib/libc/include/arc4random.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.