Cuberite
A lightweight, fast and extensible game server for Minecraft
EntropyContext.cpp
Go to the documentation of this file.
1 
2 // EntropyContext.cpp
3 
4 // Implements the cEntropyContext class representing a wrapper over entropy contexts in mbedTLS
5 
6 #include "Globals.h"
7 #include "EntropyContext.h"
8 
9 
10 
11 
12 
14 {
15  mbedtls_entropy_init(&m_Entropy);
16 }
17 
18 
19 
20 
21 
23 {
24  mbedtls_entropy_free(&m_Entropy);
25 }
26 
27 
28 
29 
mbedtls_entropy_context m_Entropy