trafgen: Use mkostemp_or_die() to create unique temporary file
commit01a9a2a5a8c56ce8699616a608a28de4e537ff56
authorTobias Klauser <tklauser@distanz.ch>
Tue, 26 Apr 2016 08:32:34 +0000 (26 10:32 +0200)
committerTobias Klauser <tklauser@distanz.ch>
Tue, 26 Apr 2016 09:22:11 +0000 (26 11:22 +0200)
treeaf75edf3ba777c3bec5603f1234134a5787bc56f
parentf3057cdf8518d4931a12beb3f4322638500efec8
trafgen: Use mkostemp_or_die() to create unique temporary file

Use the mkostemp_or_die() wrapper introduced in commit a87f181bd836
("ioops: Add mkostemp_or_die") to safely create a unique temporary file
instead of using rand() to manually create a (potentially unsafe)
temporary filename.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
trafgen.c