> > +std::vector<uint8_t> get_random_data(unsigned size);
> >
> > Could be:
> >
> > CookieFactory::CookieFactory(unsigned size);
> >
>
> I had this at first, but switched up because one of the primary use-cases for
> CookieFactory is when you've shared the secret with another process, which you
> can't do if you've called CookieFactory(unsigned size)
> > +std::vector< uint8_t> get_random_ data(unsigned size); :CookieFactory( unsigned size); unsigned size)
> >
> > Could be:
> >
> > CookieFactory:
> >
>
> I had this at first, but switched up because one of the primary use-cases for
> CookieFactory is when you've shared the secret with another process, which you
> can't do if you've called CookieFactory(
I was thinking two constructors would be:
explicit CookieFactory( std::vector< uint8_t> const& secret); unsigned size);
explicit CookieFactory(
But I take your point - you need access to the "random data" to share the secret.