give code some breathing space
shorten line that generates random characters
use [] over Array.new
add space to block
add space to timeout parameter