Add comment to clarify

This commit is contained in:
Mitchell Hashimoto 2014-04-05 09:37:59 -07:00
parent 1cd266da9d
commit 1bef7dec61
1 changed files with 2 additions and 0 deletions

View File

@ -516,6 +516,8 @@ module Vagrant
# Attempt to write into the home directory to verify we can # Attempt to write into the home directory to verify we can
begin begin
# Append a random suffix to avoid race conditions if Vagrant
# is running in parallel with other Vagrant processes.
suffix = (0...32).map { (65 + rand(26)).chr }.join suffix = (0...32).map { (65 + rand(26)).chr }.join
path = @home_path.join("perm_test_#{suffix}") path = @home_path.join("perm_test_#{suffix}")
path.open("w") do |f| path.open("w") do |f|