title: How to generate a GUID in C?
body: <p>I want to generate guids to insert into a SQLite database (i.e. no support from the db itself). However, I would like to have control over certain properties:</p>
  
  <ol>
  <li>Orderedness for generating increasing guid values.</li>
  <li>Computer independence. The db is public and may/may not want guids to allow someone to trace data back to a specific machine.</li>
  <li>'Enough' randomness. The guids are keys in the db which is going to be merged with a lot of other dbs and can get quite large, meaning that faking a guid like many algorithms do is no good.</li>
  <li>I can deal with using system specific APIs but please link both Windows and Linux functions, and something like SQLite is preferred, where I can just use code someone else wrote.</li>
  <li>I would also prefer code which is OK to use in a commercial application.</li>
  </ol>