utils/tune-hash.js
function fill(size, seed, multiplier) {
    var hash = new HashTable(size, seed, multiplier);
    var x = agentdb.getX(1, 1); // dummy data Unknown, Unknown
    agents.forEach(function (agent) {
        if (agent.status < 2) {
            var obj = { "a": agent.agent, "x": x };
            hash.add('a', obj);
        }
    });
    return hash.getHistory();
}
function fill(size, seed, multiplier) {
    var hash = new HashTable(size, seed, multiplier);
    var x = agentdb.getX(1, 1); // dummy data Unknown, Unknown
    agents.forEach(function (agent) {
        if (agent.status < 2) {
            var obj = { "a": agent.agent, "x": x };
            hash.add('a', obj);
        }
    });
    return hash.getHistory();
}
function fill ( size , seed , multiplier ) { var hash = new HashTable ( size , seed , multiplier ) ; var x = agentdb . getX ( 1 , 1 ) ; // dummy data Unknown, Unknown agents . forEach ( function ( agent ) { if ( agent . status < 2 ) { var obj = { "a" : agent . agent , "x" : x } ; hash . add ( 'a' , obj ) ; } } ) ; return hash . getHistory ( ) ; }
Fill the hash table with the agents.

@param size of hash table.
@param seed for hash table.
@param multiplier of hash table.
@rtype Array hash table history.
Fill the hash table with the agents .