Dan McDonald writes:
> On Fri, Jun 20, 2008 at 07:43:43PM -0700, Darren Reed wrote:
> > Are there any plans or thoughts about providing in-kernel random
> > or pseudo-random functions as a proper interface?  My search of
> > /usr/share/man on a build91 box doesn't show up anything of
> > interest...
> 
> The kernel has a proper interface that for some reason isn't in the man page:
> 
>       random_get_pseudo_bytes(uint8_t *, size_t);
> 
> See sys/random.h.  PSARC 2000/484 should have the commitment levels.

That's Consolidation Private, which is part of why it's not in the man
page.

See also CR 6329365.  Depending on what you intend to do with your
"random" number, you might not need as much gruelling randomness as
that function can provide.  ;-}

-- 
James Carlson, Solaris Networking              <james.d.carlson at sun.com>
Sun Microsystems / 35 Network Drive        71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677

Reply via email to