2009/11/20 Jeffrey Walton <[email protected]>

> Hi Nick,
>
> >    rand_num_gen.GenerateBlock(plainstring, size);
> >    ...
> >    s_globalRNG.GenerateBlock((byte *)plainstring, size);
> What is plainstring? if its a std::string, resize it first then get a
> pointer to byte[0]:
> plainstring.resize(size);
> s_globalRNG.GenerateBlock((byte *)plainstring.data(), plainstring.size());
>
> Jeff
>

Hi Jeff,

plainstring is a char* buffer of size "size".

And the first call has no problems...

cheers

Nick

-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.

Reply via email to