Great, but according to man 3 tmpnam:
```
BUGS
       Never use this function.  Use mkstemp(3) or tmpfile(3) instead.
```
It has security issues. Use `mkstemp` :)