PRNGs (Security+) – Is Chance Predetermined?

5457

Examine the figure. We are collecting noise to increase entropy. What type of algorithm are we developing here?
(see answer below and video response.)

prng1


Answer

Based on the code in the figure we are most likely developing a pseudorandom number generator (PRNG). These are used in cryptography systems and games to generate a sequence of “random” numbers.  /dev/random and /dev/urandom are common files used to collect noise in order to increase entropy. They could be used with java.util.rand for example. Depending on the system and environment you might also make use of getrandom (Linux) and arc4random (OpenBSD).

The video answer below describes PRNGs.

Video answer:

Want to learn more? Check out my Security+ SY0-501 Cert Guide:

ShowCover

It has over 800 pages of content, 600 questions and answers, and 50 real-world scenarios included at the companion website. Get yours today at Amazon or PearsonITCertification