Compile Time Randomisation

Hi, does anyone know of adding per-compile data to a binary?
I have written some code that loads some data, then converts it into a better format for my application, and saves that back to disk, so that subsequently it will not need to reconvert the original data. I can check to see if the original file has changed (simple hash function), but i'm wondering if there's a good way to determine whether the converted data was converted using an earlier version of the binary. Can you get a macro that expands into some sort of timestamp? or is there a better way of doing this
Last edited on
Generate a GUID or a key (DSA/RSA/SHA).
closed account (o1vk4iN6)
Why not have a file version in the file? That is I assume you are changing the format and want it to be somehow associated with a specific binary, instead just have a binary only able to convert/open up to a certain file version, so it can't open anything newer.
Topic archived. No new replies allowed.