hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
iroha::Seeder Class Reference

Helper class to seed a PRNG. For not crypto-related use only. More...

#include "permutation_generator.hpp"

Collaboration diagram for iroha::Seeder:
Collaboration graph

Public Types

using ValueType = RandomEngine::result_type
 

Public Member Functions

 Seeder ()
 
RandomEngine makePrng () const
 
Seederfeed (const char *seed_start, size_t seed_length)
 
Seederfeed (ValueType value)
 

Protected Attributes

ValueType current_seed_
 

Detailed Description

Helper class to seed a PRNG. For not crypto-related use only.

Member Typedef Documentation

◆ ValueType

using iroha::Seeder::ValueType = RandomEngine::result_type

Constructor & Destructor Documentation

◆ Seeder()

Seeder::Seeder ( )

Member Function Documentation

◆ feed() [1/2]

Seeder & Seeder::feed ( const char *  seed_start,
size_t  seed_length 
)
Here is the caller graph for this function:

◆ feed() [2/2]

Seeder & Seeder::feed ( ValueType  value)
inline

◆ makePrng()

RandomEngine Seeder::makePrng ( ) const
Here is the caller graph for this function:

Member Data Documentation

◆ current_seed_

ValueType iroha::Seeder::current_seed_
protected

The documentation for this class was generated from the following files: