lib/utensils.js
function checksum(str) {
    crcTbl = crcTbl || makeCRCTable();

    /* jslint bitwise: true */
    var crc = 0 ^ (-1);

    for (var i = 0; i < str.length; i++) {
        crc = (crc >>> 8) ^ crcTbl[(crc ^ str.charCodeAt(i)) & 0xFF];
    }

    return (crc ^ (-1)) >>> 0;
}
function checksum(str) {
    crcTbl = crcTbl || makeCRCTable();

    /* jslint bitwise: true */
    var crc = 0 ^ (-1);

    for (var i = 0; i < str.length; i++) {
        crc = (crc >>> 8) ^ crcTbl[(crc ^ str.charCodeAt(i)) & 0xFF];
    }

    return (crc ^ (-1)) >>> 0;
}
function checksum ( str ) { crcTbl = crcTbl || makeCRCTable ( ) ; /* jslint bitwise: true */ var crc = 0 ^ ( - 1 ) ; for ( var i = 0 ; i < str . length ; i ++ ) { crc = ( crc >>> 8 ) ^ crcTbl [ ( crc ^ str . charCodeAt ( i ) ) & 0xFF ] ; } return ( crc ^ ( - 1 ) ) >>> 0 ; }
Generate a checkum for a string
@param str
@returns {number}
Generate a checkum for a string