diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2018-03-07T10·00+0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-07T10·00+0100 |
commit | 4452f6e855c3f81b93003f47ebb5d372a7609894 (patch) | |
tree | bc1e8d62fdd05de5c6f0c583096022c4e909f696 /src/libstore/gc.cc | |
parent | e917c05628abd0ff429c429d0e814532180b9586 (diff) | |
parent | 56253bb08fef60f4768ebb2ca013135b0dbf5df3 (diff) |
Merge pull request #1955 from dtzWill/fix/rand-random
rand() -> random(), since we use srandom().
Diffstat (limited to 'src/libstore/gc.cc')
-rw-r--r-- | src/libstore/gc.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/gc.cc b/src/libstore/gc.cc index 943b16c28fa3..ba49749d830a 100644 --- a/src/libstore/gc.cc +++ b/src/libstore/gc.cc @@ -59,7 +59,7 @@ static void makeSymlink(const Path & link, const Path & target) /* Create the new symlink. */ Path tempLink = (format("%1%.tmp-%2%-%3%") - % link % getpid() % rand()).str(); + % link % getpid() % random()).str(); createSymlink(target, tempLink); /* Atomically replace the old one. */ |