{"id":423,"date":"2022-01-05T03:16:00","date_gmt":"2022-01-05T03:16:00","guid":{"rendered":"https:\/\/www.pufsecurity.com\/?post_type=technology&p=423"},"modified":"2024-06-26T02:37:12","modified_gmt":"2024-06-26T02:37:12","slug":"trng","status":"publish","type":"technology","link":"https:\/\/www.pufsecurity.com\/zh-hans\/technology\/trng\/","title":{"rendered":"TRNG\u00a0\u00a0"},"content":{"rendered":"\n
Algorithms that generate random numbers are vital in modern computing and play a role in everything from video games to secure internet browsing. We generally define two categorizations of random numbers, \u201dtrue\u201d and \u201dpseudo.\u201d<\/p>\n\n\n\n
Pseudo-random numbers are not hardware-based (derived from a random physical process) and instead use, for example, a seed number and an algorithm to produce numbers that appear to be random. This is perfectly fine within a computer game but becomes an easily exploitable weak link when used for encryption and decryption.<\/p>\n\n\n\n
True Random Number Generators or TRNGs take this to the hardware level as a physical process. Typically, they generate random numbers from one or several entropy sources. This provides the \u201ctrue\u201d randomness from environmental noises or anything that operates with randomness in nature, such as the decay of a radioactive atom.<\/p>\n\n\n\n However, an entropy source is typically an analog signal due to practical limitations of digital semiconductor design. Therefore, a digitization circuit is necessary to sample the time-variant randomness of these entropy sources and convert the analog signal into digits for the modern CPU system. The digital signal sampled from the entropy source is called raw entropy. However, the raw entropy is not always ideally random. There may be some bias in the entropy sources or digitization circuit, which means the Hamming Weight (the ratio between the number of bit zero and bit one), may not be close to 50%. In other words, not perfectly random. <\/p>\n\n\n\n
<\/figure>\n\n\n\n