mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
rand() -> random(), since we use srandom().
rand() requires we call srand() instead, but might as well use random().
This commit is contained in:
parent
70dbac7491
commit
56253bb08f
3 changed files with 3 additions and 3 deletions
|
@ -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. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue