diff options
author | Will Dietz <w@wdtz.org> | 2018-03-06 17:34:44 -0600 |
---|---|---|
committer | Will Dietz <w@wdtz.org> | 2018-03-06 17:44:25 -0600 |
commit | 56253bb08fef60f4768ebb2ca013135b0dbf5df3 (patch) | |
tree | 1c30b2e3a882c86c871ff6bcfd6d2d1f4493b608 /src/libstore/gc.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/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 943b16c28..ba49749d8 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. */ |