diff --git a/yellownotes.cpp b/yellownotes.cpp index ee5c90a..1a3d9c0 100644 --- a/yellownotes.cpp +++ b/yellownotes.cpp @@ -835,7 +835,7 @@ void YellowNotes::newNote(void *sender) char buf[200]; int r = rand() % 1000; - sprintf(buf, "%llu-%d", milliseconds_since_epoch, r); + sprintf(buf, "%d-%llu", r, milliseconds_since_epoch); std::string new_note_file = buf; std::string notes_dir = notesDir();