title: Is there any better way to generate guid in gcc
body: <p>I had a requirement to generate guid in C,
  How can generate guid(<a href="http://en.wikipedia.org/wiki/Globally_unique_identifier" rel="nofollow">http://en.wikipedia.org/wiki/Globally_unique_identifier</a>) in libc .
  I need to generate guids randomly .</p>