LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Random Seed. What is it? (http://www.linuxquestions.org/questions/slackware-14/random-seed-what-is-it-539979/)

cwizardone 03-23-2007 01:45 PM

Random Seed. What is it?
 
Recently I noticed my system is saving the "random seed" at shutdown and loading it at start up. I know, in theory, what a random seed is, but here, using Slackware 11 and the 2.6.18 kernel, what is it, what does it do, and why?
Many Thanks.

{BBI}Nexus{BBI} 03-23-2007 02:21 PM

Read this: http://en.wikipedia.org/wiki/Random_seed

XGizzmo 03-23-2007 02:32 PM

Truly random numbers are hard to make, there are random functions to make these random numbers.
Those functions use a "random seed" to initialize the random function, The problem is if you use the same seed you get the exact same order of numbers. Think of it as a deck of cards "random seed" shuffles the cards. If you keep the cards in order it will always be in the same order. Only when you shuffle the cards again will the order change. So slackware saves a new random seed every time
so that the random numbers that the random functions create are truly random.

I feel like I need to say random more.

bgeddy 03-23-2007 06:45 PM

This got me thinking....found this :
http://eprint.iacr.org/2006/086.pdf
.....Heavy stuff..My head hurts !!

H_TeXMeX_H 03-23-2007 07:39 PM

Random seed is needed because certain programs use it, such as gnupg to generate encryption keys and stuff.

You'd be surprised how difficult it is to get truly random numbers ....

syg00 03-23-2007 08:21 PM

Quote:

Originally Posted by bgeddy
This got me thinking....found this :
.....Heavy stuff..My head hurts !!

Maybe - but I wish I had that in my hand when I stumbled across some of the relevant code when ambling around the kernel source one day.
No fun trying to work it out for yourself from the source, believe me.

bgeddy 03-24-2007 05:39 AM

I can imagine.. to quote the paper:

Code:

Why reverse-engineering the LRNG is not easy.


All times are GMT -5. The time now is 11:59 AM.