lib/urban_pass/generate.rb in urban_pass-0.2.0 vs lib/urban_pass/generate.rb in urban_pass-0.2.1
- old
+ new
@@ -20,10 +20,10 @@
4.times do
threads << Thread.new { Thread.current["word"] = random_word }
end
phrase = [] # two arrays > string concatenation
threads.each {|t| t.join; phrase << t["word"]}
- phrase = phrase.join
+ phrase = phrase.join("-")
pass_phrase = remove_spaces(phrase)
copy(pass_phrase)
return pass_phrase
end