I'm integrating to a legacy application that produces data files where the maximum file name size is 8 characters. I can control the name and I'd like to be able to base it on the current date and time, to the nearest second. It must be unique.
Has anyone got any nice ideas or algorithms to achieve this, without any state?
I'm using C# but any language or pseudo-code ideas are welcome!
Edit: Any characters A-Za-z0-9 allowed only (to be on the safe side),
I think the easiest solution would be to store Unix time in hex, which would last 93 years from now.