fix tempnam name generation, and a small bug in tmpnam on retry limit
2 files changed