Class PRNG

Inheritance Relationships

Derived Type

Class Documentation

class PRNG

Inheritence diagram for PRNG:

digraph {
    graph [bgcolor="#00000000"]
    node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2]
    edge [color="#1414CE"]
    "2" [label="default_prng::Blake2Engine" tooltip="default_prng::Blake2Engine"]
    "1" [label="PRNG" tooltip="PRNG" fillcolor="#BFBFBF"]
    "2" -> "1" [dir=forward tooltip="public-inheritance"]
}

DISCLAIMER: IMPORTANT NOTICE ABOUT FILE MODIFICATIONS

This file is used in OpenFHE’s built-in PRNG and ANY EXTERNAL PRNG. The file is critical to the functionality and the security of the library.

Modifications should only be performed by personnel who understand the potential impacts.

By proceeding with changes to this file, you acknowledge that you understand the risks involved and accept full responsibility for any resulting issues. Abstract base class for any PRNG engine.

Subclassed by default_prng::Blake2Engine

Public Types

using result_type = uint32_t

Public Functions

virtual result_type operator()() = 0
virtual ~PRNG() = default

Public Static Functions

static inline constexpr result_type min()

minimum value used by C++11 distribution generators when no lower bound is explicitly specified by the user

static inline constexpr result_type max()

maximum value used by C++11 distribution generators when no upper bound is explicitly specified by the user

Protected Functions

PRNG() = default