[][src]Module quantum_random::web_async

Contains the means of obtaining the data, as well as fetching unsigned or signed primitives

Structs

EntropyBank

The default structure for holding random bytes

Statics

ENABLE_DEBUG

Toggles debug

ENTROPY_BANK_EXPIRE_MS

In the case the https stream is interrupted (I've had this happen quite frequently), increase this value. 10 should be more than enough for a stable connection

ENTROPY_BANK_SIZE

MAX_BLOCK_SIZE

There are 1024 x 1024 possible hex values. There are thus 1024 x 1024 x 2 possible bytes

MAX_RETRY_COUNT

Enable temporarily if you're encountering problems with fetching the data

Functions

extract_values_anu

Extracts the bytes from the downloaded string for anu qrng

next_i8s

Asynchronously produces len number of i8's

next_i16s

Asynchronously produces len number of i16's

next_i32s

Asynchronously produces len number of i32's

next_i64s

Asynchronously produces len number of i64's

next_i128s

Asynchronously produces len number of i128's

next_u8s

Asynchronously produces len number of u8's

next_u16s

Asynchronously produces len number of u16's

next_u32s

Asynchronously produces len number of u32's

next_u64s

Asynchronously produces len number of u64's

next_u128s

Asynchronously produces len number of u128's