'L{_getRandomNumber} returns an integer constructed directly from the
bytes returned by the random byte generator passed to it.'

def test_usesSuppliedRandomFunction(self):

    def random(data):
        return (chr(data) * data)
    self.assertEqual(transport._getRandomNumber(random, 32), ((((4 << 24) | (4 << 16)) | (4 << 8)) | 4))
