Ashet OS

namespace: ashet.random

System Calls

syscall get_soft_random(in data: bytebuf)

Fills the provided pointer with random bytes from the entropy pool.

If the entropy pool runs out of entropy bits, this call does not block and draw bytes from the pool.

Asynchronous Operations

async_call GetStrictRandom(in data: bytebuf)

Fills the provided buffer with given length amount of random bytes.

This call blocks until the entropy pool has enough entropy to fill an entire hash to draw from.