Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Oct 1998 19:39:48 -0700
From:      John Polstra <jdp@polstra.com>
To:        ncb05@uow.edu.au
Cc:        hackers@FreeBSD.ORG
Subject:   Re: random data for operations in kernel
Message-ID:  <199810170239.TAA16560@austin.polstra.com>
In-Reply-To: <Pine.SOL.4.02A.9810160013480.18400-100000@banshee.cs.uow.edu.au>
References:  <Pine.SOL.4.02A.9810160013480.18400-100000@banshee.cs.uow.edu.au>

next in thread | previous in thread | raw e-mail | index | archive | help
In article <Pine.SOL.4.02A.9810160013480.18400-100000@banshee.cs.uow.edu.au>,
Nicholas Charles Brawn  <ncb05@uow.edu.au> wrote:

> What do people suggest would be the best way to derive a random value
> for use in a system call? Are there any examples in the present kernel
> source tree that perform this, or a similar operation?

Sys/libkern has "random.c" with a function random().  Elsewhere
there's the code implementing /dev/random.

John
--
   John Polstra                                       jdp@polstra.com
   John D. Polstra & Co., Inc.                Seattle, Washington USA
   "Self-knowledge is always bad news."                 -- John Barth

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199810170239.TAA16560>