O'Reilly logo

Android Application Security Essentials by Pragati Ogal Rai

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Random number generation

Generating a random number is one of the most important tasks in cryptography. A random number acts as a seed for other crypto functions, such as encryption and generating message authentication codes. It is hard to simulate the generation of true random numbers as it comes from unpredictable acts of nature. Computer systems generate pseudo random numbers which means that they are not truly random but appear random.

There are two approaches to compute generated random numbers: Pseudo Random Number Generators (PRNG) and True Random Number Generators (TRNG). PRNGs are generated by an algorithm based on some mathematical formula. TRNGs are based on system characteristics, such as CPU (Central Processing Unit) cycles, clock, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required