Conversation

TIL Apple deprecated getentropy() because they like weak keys from cryptographic software working around broken platforms with no safe API for cryptographic entropy.
3
8
It rotates the ChaCha20 key whenever it finishes using up the current small cache and occasionally reseeds itself. It's meant to alleviate the need to use anything else by avoiding system call overhead but doesn't really achieve that due to global state rather than thread-local.
1