commit | 22ab2dfb190cbb38b02b67920174fe020e164d0e | [log] [tgz] |
---|---|---|
author | James Henstridge <james@jamesh.id.au> | Sat Nov 28 11:50:30 2020 +0800 |
committer | GitHub <noreply@github.com> | Sat Nov 28 03:50:30 2020 +0000 |
tree | f76f64343708471702d84cd5a8c44535df61557b | |
parent | 038fdea0a05bc030b0bfda479dc2e08d2220ec74 [diff] |
Use ioutil.TempDir to create temporary directory (#123) Rather than hand coding the temporary directory creation logic, use ioutil.TempDir with its own (seeded) random number generator independent of the math/rand default PRNG, so it doesn't suffer from trying a predictable and limited sequence of temporary directory names. Fixes #45.