On Oct 25, 2:47 pm, "Dr. David Kirkby" <david.kir...@onetel.net>
wrote:
> On 10/25/10 04:50 PM, Donald Alan Morrison wrote:
> > On Oct 25, 8:19 am, David Kirkby<david.kir...@onetel.net>  wrote:
> >> Getting a checksum of each doctest would be easy. I suggest we use:
> >> $ cksum sometest.py  | awk '{print $1}'
> >> because that will be totally portable across all platforms. 'cksum' is
> >> 32-bit checksum that's part of the POSIX standard and the algorithm is
> >> defined. So there's no worry about whether one has an md5 program, and
> >> if so what its called.
> >http://docs.python.org/library/hashlib.html#module-hashlib
>
> > Python's standard library "hashlib" contains both MD5 and SHA1 Message
> > Digests.
>
> > Their advantage over the checksum (CRC) algorithm, is that the output
> > digest changes dramatically when only 1 input bit changes.
>
> I'm not convinced it's important how many bits change in the output if the 
> input
> changes by one bit.

http://selenic.com/pipermail/mercurial/2009-April/025526.html
http://mercurial.selenic.com/wiki/Nodeid

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to