Hi folks,
I'm working on a little (not so little actually) project in C (ref. this question) , and I need a little function in C that'd generate a unique and random string.
I need a small one that I can include as a utility function in a .c file. Please help me with your brains, and show me how smart this could be done!
Thanks and a virtual BIG hug for the best solution :)
EDIT: (What I just said to msw below) I actually think that I just need a random string as a key (which would look like a uuid) and I thought that'd be done with timestamps or such. (I don't want to add a bunch of files to my project just for a random key generation)
Sorry for the confusion, everyone!
EDIT2: Thank you all for your input, I'll finally use the OSSP uuid lib with SHA-1 it looks easier to implement/integrate