CatapultServer  v0.5.0.1 (Elephant)
Random.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include <random>
23 #include <stdint.h>
24 
25 namespace catapult { namespace tools {
26 
29  public:
32 
34  explicit RandomGenerator(uint64_t seed);
35 
36  public:
38  uint64_t operator()();
39 
40  private:
41  std::mt19937_64 m_gen;
42  };
43 
45  uint64_t Random();
46 
48  uint8_t RandomByte();
49 }}
publishSdk.Publisher.publish_header
def publish_header(self, source_directory, component, header)
Definition: publishSdk.py:152
catapult::tools::RandomGenerator
Random generator.
Definition: Random.h:28
publishSdk.Publisher.source_directories
source_directories
Definition: publishSdk.py:60
catapult::tools::RandomGenerator::m_gen
std::mt19937_64 m_gen
Definition: Random.h:41
publishSdk.Publisher.register_source_directory
def register_source_directory(self, source_directory)
Definition: publishSdk.py:127
publishSdk.Publisher.publish_extension
def publish_extension(self, extension, components)
Definition: publishSdk.py:88
publishSdk.find_headers
def find_headers(directory)
Definition: publishSdk.py:11
publishSdk.Publisher.publish_directory
publish_directory
Definition: publishSdk.py:55
catapult::tools::RandomByte
uint8_t RandomByte()
Generates a uint8_t random number.
Definition: Random.cpp:47
publishSdk.Publisher.publish_catapult_directory
publish_catapult_directory
Definition: publishSdk.py:56
publishSdk.publish_all
def publish_all()
Definition: publishSdk.py:168
publishSdk.force_empty
def force_empty(directory)
Definition: publishSdk.py:29
publishSdk.Publisher.publish_component
def publish_component(self, component)
Definition: publishSdk.py:67
publishSdk.Publisher.headers
headers
Definition: publishSdk.py:59
publishSdk.Publisher.publish_merged_file
def publish_merged_file(self, filename)
Definition: publishSdk.py:96
publishSdk.Publisher.log
def log(self, *args)
Definition: publishSdk.py:163
publishSdk.require_existence
def require_existence(path)
Definition: publishSdk.py:19
publishSdk.Publisher.verbose
verbose
Definition: publishSdk.py:58
publishSdk.Publisher.publish_sdk_extensions
def publish_sdk_extensions(self, component)
Definition: publishSdk.py:109
publishSdk.Publisher.flush_master_header
def flush_master_header(self, exclusions=None)
Definition: publishSdk.py:117
catapult::tools::Random
uint64_t Random()
Generates a uint64_t random number.
Definition: Random.cpp:42
publishSdk.Publisher.__init__
def __init__(self, root_directory, publish_directory)
Definition: publishSdk.py:50
publishSdk.Publisher.publish_components
def publish_components(self, plugin_directory, components)
Definition: publishSdk.py:76
publishSdk.Publisher.publish_plugin
def publish_plugin(self, group, plugin, components)
Definition: publishSdk.py:92
Random.h
catapult::tools::RandomGenerator::operator()
uint64_t operator()()
Generates next random number.
Definition: Random.cpp:36
catapult::tools::RandomGenerator::RandomGenerator
RandomGenerator()
Creates random generator using random system seed.
Definition: Random.cpp:27
catapult
Definition: AddressExtractionExtension.cpp:28
publishSdk.Publisher.root_directory
root_directory
Definition: publishSdk.py:53
publishSdk.Publisher.set_verbose
def set_verbose(self, verbose)
Definition: publishSdk.py:64
publishSdk.require_non_existence
def require_non_existence(path)
Definition: publishSdk.py:24
publishSdk.find_subdirectories
def find_subdirectories(directory)
Definition: publishSdk.py:15
publishSdk.fix_includes
def fix_includes(path)
Definition: publishSdk.py:40
publishSdk.Publisher.root_catapult_directory
root_catapult_directory
Definition: publishSdk.py:54
publishSdk.Publisher
Definition: publishSdk.py:49
publishSdk.Publisher.publish_headers
def publish_headers(self, source_directory, component)
Definition: publishSdk.py:131