float SimpleRNG::GetUniform(unsigned int& u, unsigned int& v)
{
    // 0 <= u <= 2^32
    unsigned int z = GetUint(u, v);
    // The magic number is 1/(2^32 + 1) and so result is positive and less than 1.
    return z*2.328306435996595e-10;
}
MSdpElementBuilder* CRFCommPortAttrib::BuildUintL(const TDesC8& aUint)
	{
	if(aUint.Length() > 4) // 4 being the 32bit TUint byte size
		User::Leave(KErrArgument);
	iPort=static_cast<TUint8>(GetUint(aUint));

	if(iPort<(TUint)KMinRfcommServerChannel || iPort>(TUint)KMaxRfcommServerChannel) //30 is max RFComm port
		{
		User::Leave(KErrArgument);
		}
	
	return iParent;
	}