From mboxrd@z Thu Jan 1 00:00:00 1970 From: lamikr Subject: Re: Random Number Generation Date: Wed, 06 Sep 2006 23:20:04 +0300 Message-ID: <44FF2D74.7000404@cc.jyu.fi> References: Reply-To: lamikr@cc.jyu.fi Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-omap-open-source-bounces+gplao-linux-omap-open-source=gmane.org@linux.omap.com Errors-To: linux-omap-open-source-bounces+gplao-linux-omap-open-source=gmane.org@linux.omap.com To: Abot Botbot Cc: Linux-omap-open-source@linux.omap.com List-Id: linux-omap@vger.kernel.org Abot Botbot wrote: > Hello all, > > I'm wondering how one would generate a random number on both the DSP > and GPP sides. Does linux come with a tool for generating random > numbers? Should I include a standard (and large) math.h library for > this purpose? I know the OMAP has hardware support for the generation > of random numbers, but I can't seem to find refferences to how to use > it in the BSL pdf. Any insight is much appreciated. I have not tried my self, but have you seen the random generator driver in drivers\char\omap-rng.c?