On Wed, Aug 09, 2000 at 12:58:20PM +0700, Adi Sudewa wrote:
> how to generate random integers from within real-time thread.
> I need to generate random numbers so my simulation can be unpredictable.
> It is not cool to have a train running with 20.00 m/s speed 
> all the time so I'd like to have the speed fluctuate round 20.00 m/s.

        You could used get_random_bytes().  See linux/random.h for the
prototype.

-- 
Nathan Paul Simons, Programmer for FSMLabs
http://www.fsmlabs.com/
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/

Reply via email to