create_continuum_for (MemCache)

    # File lib/active_support/vendor/memcache-client-1.7.4/memcache.rb, line 872
      def create_continuum_for(servers)
        total_weight = servers.inject(0) { |memo, srv| memo + srv.weight }
        continuum = []

        servers.each do |server|
          entry_count_for(server, servers.size, total_weight).times do |idx|
            hash = Digest::SHA1.hexdigest("#{server.host}:#{server.port}:#{idx}")
            value = Integer("0x#{hash[0..7]}")
            continuum << Continuum::Entry.new(value, server)
          end
        end

        continuum.sort { |a, b| a.value <=> b.value }
      end