This queue is for tickets about the Digest-CRC CPAN distribution.

Report information
The Basics
Id:
101999
Status:
resolved
Priority:
Low/Low
Queue:

People
Owner:
OLIMAUL [...] cpan.org
Requestors:
jim.avera [...] gmail.com
Cc:
AdminCc:

BugTracker
Severity:
(no value)
Broken in:
(no value)
Fixed in:
(no value)



Subject: crc64 does not work using OO api
Date: Sat, 07 Feb 2015 23:47:47 -0800
To: bug-Digest-CRC@rt.cpan.org
From: Jim Avera <jim.avera@gmail.com>
The OO api does not work with type="crc64". No error occurs, but the digest is always zero. #!/usr/bin/perl use strict; use warnings; use Digest::CRC qw(crc64); my $data = "blahblah"; my $a = crc64($data); my $b = Digest::CRC->new(type=>"crc64")->add($data)->digest; print "a=$a\n"; print "b=$b\n"; print "NOT THE SAME\n" unless $a eq $b;
Hi, this crc64() issue has been fixed in 0.19 which has been released today. Oliver
Subject: Re: [rt.cpan.org #101999] crc64 does not work using OO api
Date: Sun, 08 Feb 2015 16:08:16 -0800
To: bug-Digest-CRC@rt.cpan.org
From: Jim Avera <jim.avera@gmail.com>
On 02/08/2015 06:40 AM, Oliver Maul via RT wrote:
Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=101999 > > > Hi, > > this crc64() issue has been fixed in 0.19 which has been released today. > > Oliver
Wow, that was quick! Thanks very much. Relatedly, can you make new() throw an error if an unsupported or invalid "type" is specified? Currently a mis-spelled type is silently accepted and add* methods appear to work, except that the resulting digest is always zero. LMK if you would like a separate bug report.
Show quoted text
> Relatedly, can you make new() throw an error if an unsupported or > invalid "type" is specified? > Currently a mis-spelled type is silently accepted and add* methods > appear to work, except that the resulting digest is always zero.
this has been added in version 0.21 that was released today. Oliver


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.