Just to be completely clear running `geany -c /tmp/something_that_does_not_exist` opening a file, making a change and saving it generates a version with the random extension?
If that happens it is something outside Geany that is doing it, if you ran Geany with the command above it will use totally default settings, and nothing in Geany's default settings generates such files.