Electroneum
Loading...
Searching...
No Matches
test_cn_fast_hash< bytes > Class Template Reference

#include <cn_fast_hash.h>

Public Member Functions

bool init ()
bool test ()

Static Public Attributes

static const size_t loop_count = bytes < 256 ? 100000 : bytes < 4096 ? 10000 : 1000

Detailed Description

template<size_t bytes>
class test_cn_fast_hash< bytes >

Definition at line 38 of file cn_fast_hash.h.

Member Function Documentation

◆ init()

template<size_t bytes>
bool test_cn_fast_hash< bytes >::init ( )
inline

Definition at line 43 of file cn_fast_hash.h.

44 {
45 crypto::rand(bytes, m_data.data());
46 return true;
47 }
std::enable_if< std::is_pod< T >::value, T >::type rand()
Definition crypto.h:216
Here is the call graph for this function:

◆ test()

template<size_t bytes>
bool test_cn_fast_hash< bytes >::test ( )
inline

Definition at line 49 of file cn_fast_hash.h.

50 {
53 return true;
54 }
void cn_fast_hash(const void *data, size_t length, char *hash)
Here is the call graph for this function:

Member Data Documentation

◆ loop_count

template<size_t bytes>
const size_t test_cn_fast_hash< bytes >::loop_count = bytes < 256 ? 100000 : bytes < 4096 ? 10000 : 1000
static

Definition at line 41 of file cn_fast_hash.h.


The documentation for this class was generated from the following file:
  • /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/tests/performance_tests/cn_fast_hash.h