require libuuid

- require libuuid at build time and remove insufficiently seeded
  replacement for uuid()
Code Cleanup

- Removed the rand/random/srand/srandom calls that are no longer used.