Sha256: 6d38e81c5677b7e7e65de6d6c2e82d6b235cc03ef9602498f193aa8a06fcb52d

Contents?: true

Size: 265 Bytes

Versions: 1

Compression:

Stored size: 265 Bytes

Contents

#include <unistd.h>

static int
hydro_random_init(void)
{
    if (getentropy(hydro_random_context.state, sizeof hydro_random_context.state) != 0) {
        return -1;
    }
    hydro_random_context.counter = ~LOAD64_LE(hydro_random_context.state);

    return 0;
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dualcone-1.0.0 vendor/libhydrogen/impl/random/wasi.h