all: replace usages of C.atexit(cb) with at_exit(cb) or {} (part 2) (#21263)

This commit is contained in:
Delyan Angelov 2024-04-12 13:51:18 +03:00 committed by GitHub
parent 2a651396cf
commit a8d0cdd31b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 10 additions and 12 deletions

View file

@ -133,7 +133,7 @@ fn deinit() {
// init initializes the default RNG.
fn init() {
default_rng = new_default()
C.atexit(deinit)
at_exit(deinit) or {}
}
fn read_32(mut rng PRNG, mut buf []u8) {