10Duke Enterprise C++ SDK
Toggle main menu visibility
Loading...
Searching...
No Matches
InsecureRandomBytes.h
1
#ifndef TENDUKE_UTL_RANDOM_INSECURERANDOMBYTES_H
2
#define TENDUKE_UTL_RANDOM_INSECURERANDOMBYTES_H
3
4
#include "./RandomBytes.h"
5
#include <random>
6
7
8
namespace
tenduke
{
namespace
utl
{
namespace
random
{
9
10
14
class
InsecureRandomBytes
:
public
tenduke::utl::random::RandomBytes
15
{
16
public
:
20
InsecureRandomBytes
();
21
22
23
// tenduke::utl:random::RandomBytes interface
24
public
:
30
void
generate
(
unsigned
char
*buffer,
size_t
bufferLength)
override
;
31
32
private
:
33
std::random_device device;
34
std::mt19937 generator;
35
std::uniform_int_distribution<std::mt19937::result_type> distribution;
36
};
37
38
39
}}}
40
41
42
#endif
// TENDUKE_UTL_RANDOM_INSECURERANDOMBYTES_H
InsecureRandomBytes::InsecureRandomBytes
InsecureRandomBytes()
Constructs new instance.
Definition
InsecureRandomBytes.cpp:5
tenduke::utl::random::InsecureRandomBytes::InsecureRandomBytes
InsecureRandomBytes()
Constructs new instance.
Definition
InsecureRandomBytes.cpp:5
tenduke::utl::random::InsecureRandomBytes::generate
void generate(unsigned char *buffer, size_t bufferLength) override
Fills the given buffer with insecurely generated random bytes.
Definition
InsecureRandomBytes.cpp:12
tenduke::utl::random::RandomBytes
Generates random bytes.
Definition
RandomBytes.h:13
tenduke::utl::random
Random number / string generation.
Definition
InsecureRandomBytes.h:8
tenduke::utl
Utilities.
Definition
Base64Decoder.h:10
tenduke
Root for classes, functions and globals of 10Duke C++ Client.
Definition
APIRequest.h:4
core
core
src
utl
random
InsecureRandomBytes.h
Generated by
1.17.0