diff --git a/actionpack/lib/action_view/helpers/asset_tag_helper.rb b/actionpack/lib/action_view/helpers/asset_tag_helper.rb
index 03ae8ce0d8..b594002629 100644
--- a/actionpack/lib/action_view/helpers/asset_tag_helper.rb
+++ b/actionpack/lib/action_view/helpers/asset_tag_helper.rb
@@ -58,7 +58,7 @@ module ActionView
# +asset_host+ to a proc like this:
#
# ActionController::Base.asset_host = Proc.new { |source|
- # "http://assets#{rand(2) + 1}.example.com"
+ # "http://assets#{source.hash % 2 + 1}.example.com"
# }
# image_tag("rails.png")
# # =>
@@ -66,7 +66,7 @@ module ActionView
# # =>
#
# The example above generates "http://assets1.example.com" and
- # "http://assets2.example.com" randomly. This option is useful for example if
+ # "http://assets2.example.com". This option is useful for example if
# you need fewer/more than four hosts, custom host names, etc.
#
# As you see the proc takes a +source+ parameter. That's a string with the