libcoap_rs

Module prng

Source
Expand description

Module containing methods for accessing or configuring the libcoap PRNG.

This module provides basic functions to seed the libcoap PRNG and retrieve random bytes from it.

Additionally, if the rand feature is enabled, this module contains integrations with the rand crate that allow using the libcoap PRNG as a rand::Rng or setting the libcoap PRNG to an existing rand::Rng.

Structs§

Functions§

  • Attempts to fill dest with random bytes using libcoap’s PRNG.
  • Seeds the default PRNG of libcoap with the provided seed.
  • Configures libcoap to use the provided rng for pseudo-random number generation instead of its default PRNG.