Sha256: 3c83764bbb406a567cc3442baf8b11d8dc8d409646ceeb9dc9e7f79222372d8a
Contents?: true
Size: 390 Bytes
Versions: 5
Compression:
Stored size: 390 Bytes
Contents
#include "core.h" #include "crypto_onetimeauth.h" #include "randombytes.h" #include "runtime.h" static int initialized; int sodium_init(void) { if (initialized != 0) { return 1; } sodium_runtime_get_cpu_features(); if (crypto_onetimeauth_pick_best_implementation() == NULL) { return -1; } randombytes_stir(); initialized = 1; return 0; }
Version data entries
5 entries across 5 versions & 1 rubygems