Randomize log-file indexing to prevent over-writing