Author | SHA1 | Message | Date |
---|---|---|---|
Marko |
89f0bbbd76
|
libs/common: Refactor libs/common 4 (#4237)
* libs/common: Refactor libs/common 4 - move byte function out of cmn to its own pkg - move tempfile out of cmn to its own pkg - move throttletimer to its own pkg ref #4147 Signed-off-by: Marko Baricevic <marbar3778@yahoo.com> * add changelog entry * fix linting issues |
5 years ago |
Anton Kaliaev |
3e1516b624
|
linters: enable stylecheck (#4153)
Refs #3262 |
5 years ago |
ValarDragon | a83eed104c |
libs/cmn: Remove Tempfile, Tempdir, switch to ioutil variants (#2114)
Our Tempfile was just a wrapper on ioutil that panicked instead of error. Our Tempdir was a less safe variant of ioutil's Tempdir. |
7 years ago |
ValarDragon | be642754f5 |
libs/cmn/writefileatomic: Handle file already exists gracefully (#2113)
This uses the stdlib's method of creating a tempfile in our write file atomimc method, with a few modifications. We use a 64 bit number rather than 32 bit, and therefore a corresponding LCG. This is to reduce collision probability. (Note we currently used 32 bytes previously, so this is likely a concern) We handle reseeding the LCG in such a way that multiple threads are even less likely to reuse the same seed. |
7 years ago |
ValarDragon | 2608249e5b | libs/common: Refactor tempfile code into its own file | 7 years ago |