From 7c8d8e74b808b668afa8eed98dc77fcf0326808f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9B=D0=B0=D0=BC=D0=BF=D1=83=D1=88=D0=B0?= Date: Tue, 7 Jul 2015 19:21:41 +0300 Subject: [PATCH] Update crc32.js --- crc32.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crc32.js b/crc32.js index 976c0d9..096b787 100644 --- a/crc32.js +++ b/crc32.js @@ -1,10 +1,10 @@ /** - * Calculate CRC16 checksum + * Calculate CRC32 checksum * Code ported to JavaScript from Java * * Oryginal source: - * http://introcs.cs.princeton.edu/java/51data/CRC16.java.html - * CRC16-CCIT for 123456789 = 29b1 + * http://introcs.cs.princeton.edu/java/51data/CRC32.java.html + * CRC16-CCIT for 123456789 = CBF43926 * * Online calculator for testing: * http://zorc.breitbandkatze.de/crc.html @@ -60,4 +60,4 @@ function crc32(charach) { return crc.toString(16); } -console.log(crc32('123456789')); \ No newline at end of file +console.log(crc32('123456789'));