Wei Dai said the following at 09/25/2009 09:31 PM :
> The class derived from RandomNumberGenerator is supposed to override one
>  of those functions. You need to figure out why that's not happening.
> 

Ah! The prototype signature for  RandomNumberGenerator::GenerateBlock()
changed between 5.2.1 and 5.6.0. Consequently my GenerateBlock(byte *,
unsigned int) [which was the old prototype signature (of course it's
obvious why it had to be changed, although I'm not sure why there are no
"const"s in the signature)] no longer overrides the function.

I wonder if there's a tool to automate finding such changes to prototype
signatures? It seems very easy to get bitten by this. I would never have
discovered that my function wasn't overriding the default if it hadn't led
to a crash. Does anyone know of a way to automate finding such changes?

I really would rather not go through every single signature manually trying
to look for changes :-(

  Doc

-- 
Web:  http://www.sff.net/people/N7DR

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to