IBR-DTNSuite  0.12
dtn::utils::Random Class Reference

#include <Random.h>

Collaboration diagram for dtn::utils::Random:
Collaboration graph

Public Member Functions

 Random ()
 
virtual ~Random ()
 
int gen_number () const
 
const std::string gen_chars (const size_t &length) const
 

Detailed Description

Definition at line 31 of file Random.h.

Constructor & Destructor Documentation

dtn::utils::Random::Random ( )

Definition at line 32 of file Random.cpp.

dtn::utils::Random::~Random ( )
virtual

Definition at line 46 of file Random.cpp.

Member Function Documentation

const std::string dtn::utils::Random::gen_chars ( const size_t &  length) const

Definition at line 55 of file Random.cpp.

Referenced by dtn::storage::SQLiteBundleSet::Factory::create().

int dtn::utils::Random::gen_number ( ) const

generates a 32-bit random number

Definition at line 50 of file Random.cpp.

Referenced by dtn::data::SDNV< int >::random().


The documentation for this class was generated from the following files: