Question: In the virtual world, it is difficult to create randomness, i . e . , software alone is hard to create random numbers. Most systems
In the virtual world, it is difficult to create randomness, ie software alone is hard to create random numbers.
Most systems resort to the physical world to gain the randomness. Linux gains the randomness from the
following physical resources:
void addkeyboardrandomnessunsigned char scancode;
void addmouserandomnessu mousedata;
void addinterruptrandomnessint irq;
void addblkdevrandomnessint major;
The first two are quite straightforward to understand: the first one uses the timing between key presses;
the second one uses mouse movement and interrupt timing; the third one gathers random numbers using
the interrupt timing. Of course, not all interrupts are good sources of randomness. For example, the timer
interrupt is not a good choice, because it is predictable. However, disk interrupts are a better measure. The
last one measures the finishing time of block device requests.
The randomness is measured using entropy, which is different from the meaning of entropy in the information theory. Here, it simply means how many bits of random numbers the system currently has. Yo
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
