Definition in file OverlayKey.cc.
#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" |
| #define GMP_TYPE unsigned long int |
Definition at line 827 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 811 of file OverlayKey.cc.
Referenced by OverlayKey::random(), OverlayKey::randomPrefix(), and OverlayKey::randomSuffix().
00812 { 00813 // fill in 32 bit chunks 00814 uint32_t* chunkPtr = (uint32_t*)r1p; 00815 00816 for (uint32_t i=0; i < ((r1n*sizeof(mp_limb_t) + 3) / 4); i++) { 00817 chunkPtr[i] = intuniform(0, 0xFFFFFFFF); 00818 } 00819 }
| std::ostream& operator<< | ( | std::ostream & | os, | |
| const OverlayKey & | c | |||
| ) |
Definition at line 608 of file OverlayKey.cc.
00609 { 00610 os << c.toString(16); 00611 return os; 00612 };
| const char* HEX = "0123456789abcdef" |
Definition at line 60 of file OverlayKey.cc.
1.5.5