From mboxrd@z Thu Jan 1 00:00:00 1970 From: wudmx@web.de (Andreas Leppert) Date: Sun, 30 Jan 2011 00:38:22 +0100 Subject: Creating the same random numbers In-Reply-To: References: <20110129140936.GA3225@yoda> Message-ID: <20110129233820.GB3225@yoda> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org Hi, On Sat, Jan 29, 2011 at 07:34:21PM +0000, Anuz Pratap Singh Tomar wrote: > > for my evaluation of different kernel modules which rely on randomness I > > need the same set of random numbers for each of them. > > > > Is there any chance that I can get a random number which depends on a > > kind of seed value? So if I start with the same seed value, the same > > random numbers should be generated. > > > If the same numbers are generated, then how can you call it random? I want to compare different kernel modules which all require some data based on randomness. But I can only compare them correctly, if they get the same random data at a certain stage. I do only need this (the "fixed random numbers") for my evaluation!