TIP: Click on subject to list as thread! ANSI
echo: tuxpower
to: Alan Ianson
from: mark lewis
date: 2016-10-02 09:36:18
subject: CRC32

01 Oct 16 21:01, you wrote to Maurice Kinal:

 MK>> Having said that, I am curious if the c code produces the 'correct'
 MK>> output as far as fidonet tic people are concerned.  Let us call it
 MK>> needed closure.  :-)

 AI> It does output a crc32 value. Always E4D9C11A. ./crc32, crc32
 AI> , and crc32 --help all return that value.

did you notice that it always fills the buffer with random bytes in main()? ;)

it is funny, though, that the same CRC value is generated on separate
machine and multiple runs... something must be wrong with the selection of
the random bytes...

 AI> I don't know if I compiled it right.. I simply did gcc crc32.c.

there's no much to compiling it... maybe specifying an output name... mine
defaulted to a.out...

one thing i do note is that it feeds the entire buffer to the update_crc
routine in one shot instead of feeding it one byte at the time... that will
make a difference in the results... especially if there's any pre- and/or
post- processing and where it is being performed...

)\/(ark

Always Mount a Scratch Monkey
Do you manage your own servers? If you are not running an IDS/IPS yer doin'
it wrong...
... The local diner doesn't give out doggie bags. The SPCA won't let 'em.
---
* Origin: (1:3634/12.73)
SEEN-BY: 109/500 120/544 123/5 111 140 400 500 789 1970 124/5013 5014 135/300
SEEN-BY: 140/1 153/757 154/0 10 30 203/0 221/6 227/51 201 229/426 240/1661
SEEN-BY: 249/303 261/38 280/464 5003 310/31 320/119 322/759 340/200 800 342/11
SEEN-BY: 342/806 633/267 280 640/384 712/848 770/1 2320/100 3634/12 15 22 24
SEEN-BY: 3634/27 50
@PATH: 3634/12 123/500 154/10 280/464 712/848 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.