Comment 5 for bug 334570

Revision history for this message
rick_dean (rick-fdd) wrote : Re: [Bug 334570] Re: OpenSSL.rand.bytes() to get a random bytes

Yes. Agreed. Derived items should not be checked into a VCS.

--
Rick

On Tue, Jul 07, 2009 at 06:52:33PM -0000, Jean-Paul Calderone wrote:
> > In the doc directory only pyOpenSSL.tex is original, and the rest are
> derived from it, right? The committed pyOpenSSL.txt is out of date even
> before my changes. The HTML source gets a bunch of trivial changes from
> my version of the derivation tools, so I'll let you do it.
>
> Right. I was rebuilding the docs for every trunk commit for a while,
> but I'm giving up on that. I plan to just do it before releases (and
> maybe get rid of all the generated files from the repository).
>
> > What is our policy on referencing OpenSSL C function names, so users
> can consult that documentation if need be?
>
> It's probably a good idea to do that.
>
> --
> OpenSSL.rand.bytes() to get a random bytes
> https://bugs.launchpad.net/bugs/334570
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in pyOpenSSL: New
>
> Bug description:
> This patch implements OpenSSL.rand.bytes() so retreiving
> them doesn't require OpenSSL.rand.write_file(). The patch includes
> a test case, and supports named parameters. It applies to
> revision 95 of branch ext-context, and probably others. I release
> this code under v2 and later of the LGPL.
>
> To get a random unsigned long long integer use...
>
> from OpenSSL import rand
> import struct
> m = struct.unpack("Q", rand.bytes(8))