OverlayKey.cc File Reference


Detailed Description

Author:
Sebastian Mies

#include <omnetpp.h>
#include "OverlayKey.h"
#include "SHA1.h"

Functions

std::ostream & operator<< (std::ostream &os, const OverlayKey &c)
void omnet_random (mp_limb_t *r1p, mp_size_t r1n)

Variables

const char * HEX = "0123456789abcdef"


Function Documentation

void omnet_random ( mp_limb_t *  r1p,
mp_size_t  r1n 
) [inline]

00688 {
00689     // fill in 32 bit chunks
00690     u_int32_t* chunkPtr = (u_int32_t*)r1p;
00691 
00692     for (uint i=0; i < ((r1n*sizeof(mp_limb_t) + 3) / 4); i++) {
00693         chunkPtr[i] = intuniform(0, 0xFFFFFFFF);
00694     }
00695 }

std::ostream& operator<< ( std::ostream &  os,
const OverlayKey c 
)

00503 {
00504     os << c.toString(16);
00505     return os;
00506 };


Variable Documentation

const char* HEX = "0123456789abcdef"


Generated on Fri Dec 15 17:50:30 2006 for ITM OverSim by  doxygen 1.4.7