This is a followup to
https://www.redhat.com/archives/libvir-list/2012-January/msg00734.html
Changes in v2:
- Replace virRandom with virRandomBits as per Eric's suggested impl
- Move virRandom* functions to virrandom.{c,h}
- Move virHash impl to virhash.{c,h}
- Remove use of le32toh() function
- Convert several virHash functions to use size_t / uint32 instead
of int/unsigned long
- Split into 4 patches for easier review/bisect