about summary refs log tree commit diff
path: root/src/libstore/optimise-store.cc
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2018-03-07T10·00+0100
committerGitHub <noreply@github.com>2018-03-07T10·00+0100
commit4452f6e855c3f81b93003f47ebb5d372a7609894 (patch)
treebc1e8d62fdd05de5c6f0c583096022c4e909f696 /src/libstore/optimise-store.cc
parente917c05628abd0ff429c429d0e814532180b9586 (diff)
parent56253bb08fef60f4768ebb2ca013135b0dbf5df3 (diff)
Merge pull request #1955 from dtzWill/fix/rand-random
rand() -> random(), since we use srandom().
Diffstat (limited to 'src/libstore/optimise-store.cc')
-rw-r--r--src/libstore/optimise-store.cc2
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) {