IoTeX client
random.h
1#ifndef IOTEX_RANDOM_H
2#define IOTEX_RANDOM_H
3
4#include "stddef.h"
5#include "stdint.h"
6
7namespace iotex
8{
9class Random
10{
11 public:
18 virtual void fillRandom(uint8_t* buf, size_t size);
19};
20} // namespace iotex
21
22// Declare global object
23extern iotex::Random randomGenerator;
24
25#endif
Definition: random.h:10
virtual void fillRandom(uint8_t *buf, size_t size)
Fill a buffer with random bytes.
Definition: abi.h:12