diff options
author | Will Dietz <w@wdtz.org> | 2018-03-06T23·34-0600 |
---|---|---|
committer | Will Dietz <w@wdtz.org> | 2018-03-06T23·44-0600 |
commit | 56253bb08fef60f4768ebb2ca013135b0dbf5df3 (patch) | |
tree | 1c30b2e3a882c86c871ff6bcfd6d2d1f4493b608 /src/libstore/optimise-store.cc | |
parent | 70dbac7491c372b514b4fd825f99a761803f40f5 (diff) |
rand() -> random(), since we use srandom().
rand() requires we call srand() instead, but might as well use random().
Diffstat (limited to 'src/libstore/optimise-store.cc')
-rw-r--r-- | src/libstore/optimise-store.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/optimise-store.cc b/src/libstore/optimise-store.cc index 891540ae4c1d..7840167d7772 100644 --- a/src/libstore/optimise-store.cc +++ b/src/libstore/optimise-store.cc @@ -213,7 +213,7 @@ void LocalStore::optimisePath_(Activity * act, OptimiseStats & stats, MakeReadOnly makeReadOnly(mustToggle ? dirOf(path) : ""); Path tempLink = (format("%1%/.tmp-link-%2%-%3%") - % realStoreDir % getpid() % rand()).str(); + % realStoreDir % getpid() % random()).str(); if (link(linkPath.c_str(), tempLink.c_str()) == -1) { if (errno == EMLINK) { |