From 56253bb08fef60f4768ebb2ca013135b0dbf5df3 Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Tue, 6 Mar 2018 17:34:44 -0600 Subject: rand() -> random(), since we use srandom(). rand() requires we call srand() instead, but might as well use random(). --- src/libstore/gc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstore/gc.cc') 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. */ -- cgit v1.2.3