#include <omnetpp.h>#include "OverlayKey.h"#include "Comparator.h"#include <BinaryValue.h>#include "SHA1.h"Go to the source code of this file.
Defines | |
| #define | GMP_TYPE unsigned long int |
Functions | |
| std::ostream & | operator<< (std::ostream &os, const OverlayKey &c) |
| void | omnet_random (mp_limb_t *r1p, mp_size_t r1n) |
| replacement function for mpn_random() using omnet's rng | |
Variables | |
| const char * | HEX = "0123456789abcdef" |
Definition in file OverlayKey.cc.
| #define GMP_TYPE unsigned long int |
Definition at line 825 of file OverlayKey.cc.
Referenced by OverlayKey::netPack(), and OverlayKey::netUnpack().
| void omnet_random | ( | mp_limb_t * | r1p, | |
| mp_size_t | r1n | |||
| ) | [inline] |
replacement function for mpn_random() using omnet's rng
Definition at line 809 of file OverlayKey.cc.
Referenced by OverlayKey::random(), OverlayKey::randomPrefix(), and OverlayKey::randomSuffix().
00810 { 00811 // fill in 32 bit chunks 00812 uint32_t* chunkPtr = (uint32_t*)r1p; 00813 00814 for (uint32_t i=0; i < ((r1n*sizeof(mp_limb_t) + 3) / 4); i++) { 00815 chunkPtr[i] = intuniform(0, 0xFFFFFFFF); 00816 } 00817 }
| std::ostream& operator<< | ( | std::ostream & | os, | |
| const OverlayKey & | c | |||
| ) |
Definition at line 606 of file OverlayKey.cc.
00607 { 00608 os << c.toString(16); 00609 return os; 00610 };
| const char* HEX = "0123456789abcdef" |
Definition at line 60 of file OverlayKey.cc.
1.5.8