Abstract
Secret keys, signing nonces and session tokens assume a value an attacker cannot guess, yet the computer that makes them is deterministic. What must an operating system’s random number generator assume to be safe, and why has it failed at boot, after machines were copied, and in signature code? Unpredictability enters as inputs an attacker cannot observe or reproduce: physical noise, environmental events, or a securely provisioned seed. It is assessed as min-entropy, condensed into a seed, and stretched by a deterministic generator whose output no efficient adversary should tell from uniform. NIST’s SP 800-90 series is the reference model. In the cases examined here, a Debian patch left the process ID as OpenSSL’s only varying seed input, some embedded devices generated keys at boot from a Linux pool that could be in a predictable state, signers reused ECDSA nonces, and Dual_EC_DRBG was a standard whose output anyone knowing one secret number could predict. Passing statistical tests cannot establish unpredictability or exclude such a trapdoor. The controls match the assumptions: use the operating system’s generator once seeded, sign with deterministic nonces, keep seeds unique per device and clone, and audit deployed keys.
What “random” has to mean
A secret key must be sampled as its scheme specifies, with enough unpredictability, given everything the attacker knows, that a guess has negligible chance of being right. Statistical uniformity is part of the requirement, but the requirement is unpredictability to an adversary who knows the algorithm, may have seen earlier outputs, and may have influenced some of the inputs. RFC 4086, the IETF’s Best Current Practice on randomness, states it in capitals: “Statistically tested randomness in the traditional sense is NOT the same as the unpredictability required for security use.” Its example is exact: “using AES with a constant key to encrypt successive integers such as 1, 2, 3, ... will produce output that also has excellent statistical randomness properties but is predictable”, while the rolls of a six-sided die encoded in ASCII are statistically poor and largely unpredictable. “So note that passing or failing statistical tests doesn’t reveal whether something is unpredictable or predictable.”1 Not every value called a nonce has to be unpredictable. For authenticated encryption algorithms that take a non-empty nonce, RFC 5116 requires that “each nonce value be distinct for each invocation of the authenticated encryption operation, for any fixed value of the key”, and suggests formats containing a counter; it also allows zero-length nonces for algorithms that can use them.2 The per-signature value in DSA and ECDSA is different: as shown below, it must be secret and must not repeat across different messages signed with the same key.
Two quantities follow from that requirement, one for each half of a generator.
The physical half is measured in min-entropy. If the most likely value of a source has probability p, its min-entropy is -log2 p, which fixes the attacker’s chance of success on the first guess. NIST SP 800-90B adopts it as the measure by which entropy sources are assessed, and RFC 4086 calls min-entropy “always the most conservative measure of entropy and usually the best to use for cryptographic evaluation”.31 The inputs need not be exotic: physical noise, the timing of environmental events, or a seed provisioned securely from elsewhere can all serve, provided the attacker cannot observe or reproduce them. The library’s reader on information theory sets out Shannon entropy, guesswork and min-entropy side by side with a worked password distribution, and the definitions here are the same.
The deterministic half is measured by computational indistinguishability. Boneh and Shoup’s graduate text defines a pseudorandom generator G that maps a short seed s to a longer string, and an attack game with two experiments: in one, the challenger draws s uniformly from the seed space and gives the adversary G(s); in the other, it gives a truly random string of the same length. The adversary outputs a bit, and its advantage is the absolute difference between the probabilities that it outputs 1 in the two experiments. “A PRG G is secure if the value PRGadv[A, G] is negligible for all efficient adversaries A” (Definition 3.1).4 The same chapter presents the sequential construction “invented by Blum and Micali”, which stretches a seed by an arbitrary amount from a generator that stretches only a little. It also defines unpredictability, a game in which the adversary chooses a position i, sees the first i output bits and guesses the next, and proves that a generator is secure if and only if it is unpredictable in this sense (Theorems 3.4 and 3.6).4 The two founding papers, Blum and Micali’s “How to generate cryptographically strong sequences of pseudo random bits” and Yao’s “Theory and application of trapdoor functions”, both appeared at FOCS in November 1982.56
Indistinguishability covers efficient adversaries who do not know the seed. It says nothing about an adversary who knows or guesses the seed, reads the internal state, or holds a trapdoor built into the design. Several failures below are of the first kinds. Dual EC is the last kind. Nonce reuse in signatures can also happen with no generator fault at all, when signing code supplies a repeated or constant value.
The library’s cryptography foundations reader shows why semantically secure public-key encryption must be randomised; such a scheme is only as good as the coins it is given.
The reference architecture: NIST SP 800-90
NIST splits a random bit generator into three documents.
SP 800-90B: entropy sources
SP 800-90B (January 2018) describes an entropy source as “a noise source, an optional conditioning component and a health testing component”. The noise source “is the root of security for the entropy source and for the RBG as a whole”: it “contains the non-deterministic, entropy-providing process that is ultimately responsible for the uncertainty” in the output.3
Assessment combines the submitter’s analysis with measurement. The submitter supplies its own entropy estimate based on the design. The data then go down one of two estimation tracks. The IID track (independent and identically distributed samples) may be used only when the submitter claims IID behaviour with a rationale, and the IID tests of section 5 (permutation, chi-square and longest-repeated-substring) find no evidence against it on the sequential data, on the row and column data collected after restarts, and, when a conditioner not on NIST’s vetted list is used, on the conditioned data; its estimate is the most-common-value estimate. Otherwise the non-IID track applies: up to ten estimators are computed, three of them “only applied to binary inputs”, “and the minimum of all the estimates is taken”.3 The initial estimate is the minimum of the track’s result, the submitter’s estimate and, for non-binary sources, a per-bit estimate scaled to per-sample units. Restart testing begins with a sanity check that fails validation outright if it fails; then, if the restart data give less than half the initial estimate, validation fails, and otherwise the noise source’s assessment is the minimum of the restart and initial estimates.3 The entropy credited to the output of a conditioning component is computed separately, from that result and the conditioner’s properties (section 3.1.5).3 The battery is conservative on purpose: in NIST’s words, a large, diverse battery “minimizes the probability that such a source’s entropy is greatly overestimated.”3
SP 800-90B specifies two approved continuous health tests, and its section 4.5 permits developer-defined tests in addition to them and, “Under some circumstances”, in their place.3 The repetition count test looks for a source stuck on one value. Under the model used to set its cutoff, in which a working source has min-entropy H per sample, the probability that a given run of C consecutive samples is all identical is at most 2^(-H(C-1)), so the cutoff for a false-alarm probability α is
C = 1 + ceil( -log2(α) / H )For α = 2^-20 and H = 2 bits per sample, C = 1 + 20/2 = 11: eleven identical samples in a row signal a failure.3 NIST is candid about its limits. The test “is not very powerful – it is able to detect only catastrophic failures”. In a separate example with a false-positive rate of about one in 10^12, a source assessed at eight bits per sample has a cutoff of six, and if it degraded to four bits per sample “it would still be expected to take about one million samples before the repetition count test would notice the problem.”3 The adaptive proportion test takes a reference sample, starts a count at one, adds one for each of the next W-1 samples that equals it, and fails if the count reaches the cutoff; it is designed to catch “a large loss of entropy that might occur as a result of some physical failure or environmental change”.3 Neither test can show that a source is good; they notice when an assessed source breaks.
SP 800-90A: deterministic generators
SP 800-90A Revision 1 (June 2015, Barker and Kelsey) specifies the deterministic random bit generators (DRBGs) that stretch a seed.7 Three remain: Hash_DRBG, HMAC_DRBG and CTR_DRBG. Each is instantiated from entropy input at a stated security strength, usually with a nonce and an optional personalisation string; the nonce rules have exceptions (section 8.6.7 allows extra entropy input to stand in for it in some constructions, and CTR_DRBG without a derivation function instantiates differently). Each keeps a reseed counter. When the counter passes the reseed interval, the generate function returns “an indication that a reseed is required” instead of output. For the hash-based designs and AES CTR_DRBG, the summary table (Table C-1) gives limits of 2^48 requests of up to 2^19 bits.7
Two properties in the standard describe what happens after the internal state leaks. Backtracking resistance means that an adversary who learns the state at some time cannot distinguish earlier outputs from random or recover earlier states; “All DRBG mechanisms in this Recommendation have been designed to provide backtracking resistance.” Prediction resistance means that “a compromise of the DRBG internal state has no effect on the security of future DRBG outputs”.7 It is requested for a particular generate call and is met by reseeding from a live entropy source before that call’s output; a generator that is simply reseeded later recovers only from the reseed onward. The distinction matters operationally. A generator can be impossible to run backwards and still be predictable forwards, until fresh entropy arrives, by anyone who has read its memory once.
The revision history in the same document records the change that made Revision 1 news: “The Dual_EC_DRBG has been removed”.7 That story is told below.
SP 800-90C: constructions
SP 800-90C, which assembles entropy sources and DRBGs into complete generators, is final: NIST’s page gives September 2025, by Barker, Kelsey, McKay, Roginsky and Sönmez Turan. It specifies constructions for four classes of generator, named RBG1, RBG2, RBG3 and RBGC.8 NIST’s entropy validation page says that “With the publication of SP 800-90C, the CMVP is also accepting submissions for Random Bit Generators.”9
The German counterpart is the BSI’s AIS 20/31 scheme of functionality classes, which this article does not describe. One class name appears in an implementer’s compliance claim: Stephan Müller’s Jitter RNG page says the Jitter RNG can be configured as “an AIS 20/31 NTG.1 compliant entropy source”.10
Where the noise comes from
On-chip hardware generators
Intel’s DRNG implementation guide describes an all-digital entropy source that “uses thermal noise within the silicon to output a random stream of bits at the rate of 3 GHz”, an AES-CBC-MAC conditioner, and a CTR_DRBG that serves RDRAND with “An upper bound of 511 128-bit samples” per seed. RDSEED returns conditioned seed material directly; Intel describes it as SP 800-90B and C compliant, a vendor claim made in a guide archived in February 2024, before SP 800-90C was final. For both instructions the carry flag “must be checked to determine whether a random value was available”.11
Microsoft’s October 2019 whitepaper on the Windows 10 generator adds a criticism from the consumer side: “Due to some unfortunate design decisions in the internal RDRAND logic, the RDRAND instruction only provides random numbers with a 128-bit security level.” Microsoft says Intel then implemented RDSEED “Based on our feedback”, and the Windows 10 design it describes prefers RDSEED when present.12
The carry flag only reports what the hardware believes. In February 2019 a Linux user reported to the systemd project that an AMD laptop could not suspend a second time; the cause turned out to be RDRAND.13 Lennart Poettering’s workaround commit of 10 May 2019 explains that “on some AMD CPUs RDRAND will sometimes (after a suspend/resume cycle?) report success via the carry flag but nonetheless return the same fixed value -1 in all cases”, and filters out that value and zero.14 AMD’s Tom Lendacky then patched the kernel (19 August 2019), attributing the problem to “a BIOS not performing the proper steps during resume” on some family 15h and 16h systems and hiding RDRAND on those families unless the administrator passes rdrand=force.15
Timing jitter
A CPU with no dedicated noise circuit may still have a high-resolution counter, and the time taken to execute fixed code varies with cache, pipeline and memory effects. Müller’s Jitter RNG describes itself as “a non-physical true random number generator” whose “only prerequisite is the availability of a high-resolution timer”.10 Donenfeld’s 2022 account describes the Linux fallback added in 5.4, which lets the generator “seed itself using cycle counter jitter in a second or so if it hasn’t already been seeded by other entropy sources”: it reads a cycle counter, arms a timer, lets the scheduler run, and credits one bit each time the timer fires.16 In Linux 6.18 the fallback first samples the counter 8,192 times and gives up if too few readings differ, so it helps only where the counter actually varies.17 Jitter needs no special hardware beyond the timer, but its entropy depends on microarchitecture that can change underneath it, which is what SP 800-90B’s non-IID estimators are for.
Interrupts, devices and seed files
General-purpose kernels also hash in interrupt timings, device data, a seed file saved at shutdown, and whatever the bootloader or hypervisor provides, and they distinguish mixing an input from crediting it. In Linux 6.18, random.c mixes device data such as MAC addresses and serial numbers without crediting any entropy, to make otherwise identical devices differ. For initialisation it credits interrupt timings at a rough rate, described in the code as feeding the pool “roughly once a second or after 64 interrupts, crediting 1 bit of entropy for whichever comes first”. A bootloader-supplied seed is always mixed and is credited only if random.trust_bootloader is on.17 The Windows 10 design described in Microsoft’s whitepaper treats its seed file, a registry entry written for the next boot, as “the primary source of entropy for the OS during boot, except in the first boot after installation”. It also mixes in the time at startup, saying “there is no reason to believe this provides any good entropy, but it greatly reduces the chance of two machines producing the same RNG state if they boot from the same disk image.”12
The operating system pool
Linux
Linux exposes three interfaces. Reads from /dev/urandom do not wait for the pool to be ready, and random(4) warns that “When read during early boot time, /dev/urandom may return data prior to the entropy pool being initialized”. /dev/random historically blocked when an entropy estimate ran low; the same page records that “Since Linux 5.6, the O_NONBLOCK flag is ignored as /dev/random will no longer block except during early boot process.”18 The getrandom(2) system call (Linux 3.17, glibc 2.25) uses no file descriptor and by default draws from the same source as /dev/urandom, except that “If the urandom source has not yet been initialized, then getrandom() will block, unless GRND_NONBLOCK is specified”. Once the source is initialised, requests of up to 256 bytes return in full; for larger requests “No such guarantees apply”, and a call can return fewer bytes or fail.19 In Linux 6.18 the kernel declares itself ready when 256 bits have been credited: the ready threshold is the size of a BLAKE2s hash in bits.17
Jason Donenfeld reworked much of the generator for Linux 5.17 and 5.18; his account of 18 March 2022 is the primary source. He replaced SHA-1 with BLAKE2s in extraction, which “allowed us to improve the forward security of the entropy input pool from 80 bits to 128 bits”; extraction re-keys the pool and seeds the ChaCha-based generator that produces output. An attempt to make /dev/urandom wait for seeding like getrandom was reverted on 22 March 2022 after breakage “on arm, m68k, microblaze, sparc32, and xtensa”, and replaced by opportunistic jitter-based initialisation on reads.16
The kernel parameters random.trust_cpu=off and random.trust_bootloader=off disable trusting the CPU’s generator or a bootloader-supplied seed “to initialize the kernel’s RNG”.20 In random.c, CPU output is mixed into the pool at boot either way and is credited towards readiness only if trust_cpu is set; bootloader seeds are credited only if random.trust_bootloader is set.17 The parameters therefore decide whether CPU or bootloader input may count towards the kernel declaring itself initialised, not whether it is used.
Windows
In the Windows 10 design that Niels Ferguson’s whitepaper describes (October 2019), “All PRNGs in the system are SP800-90 AES_CTR_DRBG with 256-bit security strength”. A root generator in the kernel feeds per-processor generators; ProcessPrng “is the primary interface to the user-mode per-processor PRNGs”, and BCryptGenRandom with the default algorithm draws from the same states. Even the old Dual EC algorithm identifier now “produce[s] output from the same per-processor AES-CTR-DRBG states as the default RNG”.12 Microsoft’s API reference says ProcessPrng “Always returns TRUE”.21
Apple and the BSDs
OpenBSD’s arc4random(3) is a per-process cryptographic generator “re-seeded from the kernel random(4) subsystem using getentropy(2) on a regular basis, and also upon fork(2)”; OpenBSD’s getentropy(2) returns at most 256 bytes and “is not intended for regular code”.2223 Apple’s Platform Security Guide describes the macOS and iOS kernel generator as “a Fortuna-derived design targeting a 256-bit security level”, fed by boot-time jitter, interrupts, a seed file, and RDSEED and RDRAND on Intel Macs.24 Apple’s Swift documentation says its SystemRandomNumberGenerator “is automatically seeded” and that “Apple platforms use arc4random_buf(3)”.25
Fortuna and recovery from compromise
Fortuna, designed by Niels Ferguson and Bruce Schneier and first published in their Practical Cryptography, addresses the question that entropy estimation answers badly: after the state has leaked, when is it safe again? The description cited here is chapter 9 of Cryptography Engineering by Ferguson, Schneier and Tadayoshi Kohno, the book’s updated edition. It uses 32 pools. Events are spread over the pools in rotation; reseeds are numbered, and “Pool Pi is included if 2^i is a divisor of r. Thus, P0 is used every reseed, P1 every other reseed, P2 every fourth reseed, etc.” If an attacker can inject known events fast enough to make reseeds frequent, some higher pool still accumulates enough unknown input between its uses. For that case, assuming unknown entropy arrives at a fixed rate ρ, spread roughly evenly over the pools, with a fixed time t between reseeds, the authors show recovery at the first reseed that uses a pool Pi with 128 ≤ 2^i ρt/32 < 256.26
Microsoft’s whitepaper gives the reasoning for a similar multi-pool structure in Windows 10: entropy estimates for interrupt timings are unreliable because “future hardware might have completely different properties”, so that design “no longer uses entropy estimates to drive the reseed schedule” and reseeds from multiple pools on a clock schedule.12
Virtual machines
A snapshot freezes the generator’s state, and when equivalent restored state is used before an effective refresh, earlier outputs can be repeated. Thomas Ristenpart and Scott Yilek demonstrated the consequence in “When Good Randomness Goes Bad”, presented at NDSS 2010.27 In their experiments under VMware and VirtualBox they showed “session-compromise attacks against clients in the Firefox and Chrome web browsers and secret-key recovery attacks against the Apache HTTPS server”, in which “an attacker can remotely extract a server’s DSA secret key”.28 Their proposed remedy was to hedge: the hedged version of an operation “preprocesses RNG-derived randomness together with other inputs (messages, keys, etc.) with HMAC”, so that repeated generator output with a different message no longer repeats the per-operation randomness. They add that “Hedging is not a replacement for good RNGs.”28
Operating systems now take a notification from the hypervisor. Linux gained a driver for the “vmgenid” virtual device, “supported by QEMU, Hyper-V, and VMware”, which tells the kernel that a VM has been forked. In Linux 6.18, random.c describes the identifier as “unique (but not necessarily secret)”, mixes it in without crediting it, and forces a reseed if the generator is already initialised.1617 A public unique identifier separates clones whose shared state is still secret; it adds no secret entropy and cannot restore secrecy to state that has already been exposed. Donenfeld describes the notification as “slightly racy, by design unfortunately”, so output can repeat before it arrives.16 On Hyper-V, the Windows 10 design “will detect when the VM state is reset, retrieve a unique (not random) value from the hypervisor, and reseed the root RNG”, which Microsoft says “does not eliminate the vulnerability, but it greatly reduces the time” in which outputs repeat. Microsoft says it does not know whether other hypervisors support the feature.12 Neither mechanism refreshes generator state held inside applications, such as a user-space library’s own pool.
Failures that exposed keys
Debian OpenSSL, 2006 to 2008
On 13 May 2008 Debian published advisory DSA-1571: “Luciano Bello discovered that the random number generator in Debian’s openssl package is predictable. This is caused by an incorrect Debian-specific change to the openssl package (CVE-2008-0166). As a result, cryptographic key material may be guessable.” The first vulnerable version, 0.9.8c-1, had been uploaded to unstable on 17 September 2006 and had propagated to the stable release, etch. Debian advised regenerating all key material made with the affected versions, and added that “all DSA keys ever used on affected Debian systems for signing or authentication purposes should be considered compromised”, because DSA “relies on a secret random value used during signature generation”. Keys made with GnuPG or GnuTLS were unaffected. The fixes were version 0.9.8c-4etch3 for stable and 0.9.8g-9 for testing and unstable.29 The CVE record’s single range, “OpenSSL 0.9.8c-1 up to versions before 0.9.8g-9 on Debian-based operating systems”, does not show the stable backport.30
The mechanism is described by Yilek, Rescorla, Shacham, Enright and Savage at IMC 2009. Debian had modified OpenSSL to silence uninitialised-memory warnings from the Valgrind tool. “The effect of the Debian bugfix is to modify ssleay_rand_add to mix in l but not b”: the pool absorbed the length of each entropy contribution and discarded its contents. What remained was the process ID, which OpenSSL mixes in so that forked processes diverge, in its native binary form, “so an attack must consider the endianness and native word size”.31 Debian’s wiki page on the incident does the counting: “The broken version of OpenSSL was being seeded only by process ID”; since PID 0 is the kernel and PID_MAX of 32768 is not reached, “there were 32767 possible random number streams per architecture. This is (2^15-1)*3 or 98301”, across little-endian 32-bit, little-endian 64-bit and big-endian 32-bit machines.32 Those counts assume the default PID limit and the same program making the same calls. Under those conditions, for a given key type and size, an attacker could precompute every key such a system could produce.
Yilek and colleagues then scanned more than 50,000 TLS servers daily, of which 751 displayed vulnerable certificates, and found “30% of the hosts vulnerable when we began our survey on day 4 after disclosure still vulnerable almost six months later”; certificate authorities kept issuing certificates for weak keys long after disclosure.31
Shared primes on the Internet, 2012
In February 2012 two groups reported independently that some public RSA keys could be factored. Lenstra and five co-authors’ ePrint paper “Ron was wrong, Whit is right” (14 February 2012) found that “two out of every one thousand RSA moduli that we collected offer no security”.33 Heninger, Durumeric, Wustrow and Halderman’s “Mining Your Ps and Qs” (USENIX Security, August 2012) traced the cause.
They report that 5.57% of TLS hosts and 9.60% of SSH hosts shared public keys “in an apparently vulnerable manner”, that they obtained RSA private keys for 0.50% of TLS hosts and 0.03% of SSH hosts through shared factors, and DSA private keys for 1.03% of SSH hosts “due to repeated signature randomness”. Nearly all were “headless and embedded network devices”, which “often generate keys automatically on first boot”. They notified 54 manufacturers.34
Two RSA moduli N1 = p·q1 and N2 = p·q2 that share a prime fall to one greatest-common-divisor computation, which takes microseconds; the paper notes that no well-generated 1024-bit modulus was publicly known to have been factored.35 The authors found several causes, including manufacturer default keys and repeated keys, and reproduced one route to a shared p without a shared q in experiments with OpenSSL. Every software package they examined drew its seed from /dev/urandom, and they found that Linux “can exhibit a boot-time entropy hole that causes urandom to produce deterministic output under conditions likely to occur in headless and embedded devices”. OpenSSL then mixes the current time in seconds into its own pool each time it draws random numbers during prime generation. In that scenario, identically configured devices booting into identical pool states produce the same first prime, until a clock tick falls between two draws on one device and not the other; from that point the states diverge and the second primes differ. The authors write that key generation “is hypersensitive to small variations in where the boundary between seconds falls”.35 When nothing diverges at all, devices share the whole key, and the 1.03% of SSH hosts whose DSA keys were recovered had repeated the per-signature random value.34
Finding the shared factors among millions of moduli needs an algorithm better than all pairs, which the authors estimated at 30 years for their data. They used Bernstein’s batch GCD: multiply all moduli in a product tree, reduce the product P modulo each N_i^2 in a remainder tree, and output gcd(N_i, z_i/N_i) where z_i = P mod N_i^2. On their dataset it “finished in 5.5 hours using a single core”.35
The method can be checked by hand. Take three toy moduli, N1 = 143 = 11·13, N2 = 187 = 11·17 and N3 = 437 = 19·23. Their product is P = 11,685,817.
- For N1: P = 143 × 81,719, and 81,719 mod 143 = 66, so
z1 = P mod 143^2 = 143 × 66andz1/N1 = 66. Then gcd(143, 66) = 11. - For N2: P = 187 × 62,491, and 62,491 mod 187 = 33, so
z2/N2 = 33and gcd(187, 33) = 11. - For N3: P = 437 × 26,741, and 26,741 mod 437 = 84, so gcd(437, 84) = 1.
The quotient z_i/N_i is the product of all the other moduli reduced mod N_i, so a common factor with any of them survives into the gcd. N1 and N2 are factored (143 = 11 × 13, 187 = 11 × 17). N3 shares no factor with anything in this sample, which says nothing about its security in general. If a modulus shares both primes with others, the gcd returns the modulus itself and needs a follow-up step; the authors met a handful of these and factored them with pairwise gcds.35
The problem did not go away. Hastings, Fried and Heninger returned to it at IMC 2016 with 81 million distinct RSA keys from scans between July 2010 and May 2016. They factored “over 313,000 keys”, found that “many vendors appear to have never produced a patch”, observed “little to no patching behavior by end users”, and reported that “The number of vulnerable hosts increased in the years after notification and public disclosure, and several newly vulnerable implementations have appeared since 2012”. Their abstract also records that after 2012 “the Linux kernel was patched to fix a boottime entropy hole that contributed to the failures”.36
Nonce reuse in signatures
DSA and ECDSA need a secret value k that does not repeat across different messages signed with the same key; two signatures made with the same key and the same k over messages whose representatives differ give away the private key. In ECDSA over a group of prime order n, RFC 6979 section 2.4 defines the message representative as the hash converted to an integer and reduced, z = bits2int(H(m)) mod n, and requires k in the range 1 to n-1 and nonzero r and s. With private key d and r the x-coordinate of kG reduced mod n, a signature is (r, s) with37
s = k^(-1) · (z + r·d) mod nTwo signatures with the same k have the same r. Subtracting, and assuming z1 ≠ z2 mod n (so that s1 ≠ s2) and r ≠ 0, so that the divisions below are inversions mod the prime n,
s1 - s2 = k^(-1) · (z1 - z2) so k = (z1 - z2) / (s1 - s2) mod n
d = (s1·k - z1) / r mod nA toy check with n = 101 (treating r as a given number rather than computing it from a curve): let d = 37, k = 19, r = 55, z1 = 20 and z2 = 81. The inverse of 19 mod 101 is 16, since 19 × 16 = 304 = 3 × 101 + 1. Then 55 × 37 = 2,035 ≡ 15, so s1 = 16 × (20 + 15) = 560 ≡ 55 and s2 = 16 × (81 + 15) = 1,536 ≡ 21. An attacker sees (55, 55) and (55, 21). Now z1 - z2 = -61 ≡ 40 and s1 - s2 = 34, whose inverse is 3 (34 × 3 = 102 ≡ 1), so k = 40 × 3 = 120 ≡ 19. Then s1·k - z1 = 1,045 - 20 = 1,025 ≡ 15, and the inverse of 55 is 90 (55 × 90 = 4,950 = 49 × 101 + 1), so d = 15 × 90 = 1,350 ≡ 37. Both secrets are recovered.
The best-known case is the PlayStation 3. At the 27th Chaos Communication Congress on 29 December 2010, the schedule lists bushing, marcan and sven for “Console Hacking 2010”; the slides also credit segher.3839 The slides state that “from a pair of signatures that use the same m, we can compute m and k” (m is their nonce, k the private key), and under the heading “Sony’s ECDSA code” show a cartoon function, getRandomNumber(), that returns 4. The next slide reads “With private keys you can SIGN THINGS”.39 The cartoon is a joke about a constant nonce; the recovery of Sony’s keys is the presenters’ account.
In August 2013 a generator failure on phones reached Bitcoin wallets. The bitcoin.org alert of 11 August 2013 said an Android component had weaknesses “that render all Android wallets generated to date vulnerable to theft” and urged key rotation.40 Google’s Android Developers Blog post of 14 August 2013, by Alex Klyubin, traced the “compromise of a bitcoin transaction” to applications using the Java Cryptography Architecture, which “may not receive cryptographically strong values on Android devices due to improper initialization of the underlying PRNG”; its remedy at the time was explicit seeding from /dev/urandom.41 Neither post says whether the compromised transaction resulted from weak key generation or from signing; predictable signing nonces are one possible mechanism.
The fix for the signing step is to derive the nonce instead of drawing it. RFC 6979 (Thomas Pornin, August 2013) “defines a deterministic digital signature generation procedure” compatible with ordinary DSA and ECDSA verifiers, so that signing does not “need access to a source of high-quality randomness”. Its sections 3.2 and 3.3 describe the derivation as an instance of SP 800-90A’s HMAC_DRBG, instantiated with the private key x as entropy input and the processed message hash as the nonce.37 One consequence is intended: “the same signature is generated every time” the same data is signed with the same key, which the RFC notes helps duplicate detection and may be unwelcome in some anonymity-sensitive protocols.37 EdDSA builds the idea into the algorithm. RFC 8032 lists among its advantages that “The use of a unique random number for each signature is not required” and says determinism “protects against attacks arising from signing with bad randomness; the effects of which can, depending on the algorithm, range up to full private key compromise.”42 Key generation still needs good randomness. DSA itself now survives mainly for old signatures: NIST’s FIPS 186-5 (February 2023) retains it “only for the purposes of verifying existing signatures”.43
Dual_EC_DRBG
Dual_EC_DRBG was one of four generators in NIST’s SP 800-90, adopted in 2006, and was also standardised in ISO 18031.4445 It works on an elliptic curve with two fixed points P and Q. In Dan Shumow and Niels Ferguson’s 2007 slides, with x(·) the x-coordinate, each step is as below; the number of bits dropped from the output depends on the parameter set, and the slides’ description drops 16.
r_i = x(s_i · P)
output = r_i · Q, x-coordinate, minus its top 16 bits
s_(i+1) = x(r_i · P)At the CRYPTO 2007 rump session on 21 August 2007, Shumow and Ferguson, both of Microsoft, presented “On the Possibility of a Back Door in the NIST SP800-90 Dual Ec Prng”.46 Their objection was that P is the standard generator, while “Point Q is a specified constant. It is not stated how it was derived.” Because the NIST curves have prime order, some number e satisfies e·Q = P (this article uses e for that direction throughout). Someone who knows e can take one output block, try each of the 2^16 possible missing top bits, keep the candidates that are x-coordinates of curve points, take a point A with that x-coordinate, multiply by e, and obtain x(e·A). Either of the two points sharing an x-coordinate gives the same result, since they are negatives of each other. For the correct candidate, A is r_i·Q or its negative, so x(e·A) = x(r_i·P), the next state. The slides put the candidate set at about 2^15; in their P-256 experiment with a Q they generated themselves, one output block plus the following bytes, “32 bytes of output” in all, “was sufficient to uniquely identify the internal state”. They closed: “We do not know how the point Q was chosen, so we don’t know if the algorithm designer knows d or e.”47
That is what was shown in 2007: whoever generated Q could have a trapdoor, and the standard gave no way to tell. On 5 September 2013 The New York Times, The Guardian and ProPublica reported, from documents obtained by The Guardian, that “Classified N.S.A. memos appear to confirm that the fatal weakness, discovered by two Microsoft cryptographers in 2007, was engineered by the agency”, and quoted a memo saying that eventually the “N.S.A. became the sole editor” of the standard.48 This is press reporting of documents that were not published in full; the reports do not show Q’s generation or the value of e.
NIST’s response is on the record. In its account, “In September 2013, news reports prompted public concern about the trustworthiness of Dual_EC_DRBG. As a result, NIST immediately recommended against the use of the algorithm and reissued SP 800-90A for public comment.” On 21 April 2014 it removed the algorithm from the draft revision “Based on its own evaluation, and in response to the lack of public confidence in the algorithm”, and told users to move to the three remaining DRBGs “as quickly as possible”.45 Revision 1 was published in June 2015 without it.7
On 20 December 2013 Reuters reported, from “two sources familiar with the contract”, that RSA “received $10 million in a deal that set the NSA formula as the preferred, or default, method for number generation in the BSafe software”. RSA said that “under no circumstances does RSA design or enable any back doors in our products.”49 The payment remains a press report and a denial.
Whether such a trapdoor could be used in practice was a separate question, and Checkoway and nine co-authors studied it at USENIX Security in August 2014. They examined OpenSSL-FIPS, Windows SChannel and RSA BSAFE Share for C/C++ and for Java (version 1.1 of each), “assuming that the attacker generated the constants”. Lacking any known relation between NIST’s P and Q, they used parameters they controlled: they chose their own Q as a random multiple of P, so that they knew the multiplier taking Q back to P, modified each library to use it, and “verified to successfully recover TLS plaintext”. The cost depended heavily on implementation choices. OpenSSL-FIPS had a bug that “prevented the library from running when Dual EC is enabled”; the authors applied the “obvious and very easy fix” and attacked the repaired version, which they call OpenSSL-fixed. A proposed TLS extension called Extended Random, which sends more generator output in the clear, would have made attacks cheaper; in BSAFE-Java 1.1 the supporting code was “disabled by means of a single static final boolean variable”.44
A real deployment then carried a substituted constant. On 17 December 2015 Juniper announced that “During a recent internal code review, Juniper discovered unauthorized code in ScreenOS that could allow a knowledgeable attacker to gain administrative access to NetScreen® devices and to decrypt VPN connections”, and that it had no reports of exploitation.50 Administrative access was a separate back door. The decryption issue is CVE-2015-7756, whose record lists ScreenOS 6.2.0r15 through 6.2.0r18, and 6.3.0r12 through 6.3.0r20 except the fixed builds (6.3.0r12b to 6.3.0r19b, and 6.3.0r21 for r20).51 Checkoway, Cohney, Garman, Green, Heninger, Maskiewicz, Rescorla, Shacham and Weinmann reverse-engineered the releases for CCS 2016. ScreenOS used Dual EC with a Q Juniper had generated, and Juniper had said in 2013 that its output was filtered through a second generator, ANSI X9.31. The unauthorised code changed that Q; the paper states that Juniper reported an attacker had done so “at some point in 2012”.52
On reseeding, the post-processing did not run. The reseed function and the generation loop shared a static buffer and a static index; reseeding filled the buffer with Dual EC output and set the index to 32, which was also the loop’s termination value. “The consequence is that whenever the PRNG is reseeded, prng_output_index is 32 at the start of the loop and therefore no calls to the ANSI X9.31 PRNG are executed. Thus, Dual EC output is emitted directly”. In the default configuration the paper analysed, the generator reseeded on every call, so the bypass applied to the output used in the VPN key exchange. The authors trace this and related changes to the PRNG and IKE code to a single 2008 release, and demonstrated, with their own Q installed, that “it is possible to passively decrypt a single IKE handshake and its associated VPN traffic in isolation”.52 No public source read here shows who installed the substituted Q or whether anyone used it to decrypt traffic.
Shown by research: Dual EC with a known discrete log between Q and P is predictable from short output (2007), TLS libraries were exploitable under that assumption in controlled tests (2014), and ScreenOS releases carried an unauthorised Q with a code path that emitted raw Dual EC output (2016). Reported by the press from leaked documents: that the NSA engineered the standard’s weakness and paid RSA to make it the BSAFE default. Unknown in public: who generated NIST’s Q and whether anyone holds e, who replaced Juniper’s Q, and whether it was used. The library’s reader on how claimed cryptographic breaks are verified uses a graded vocabulary for exactly this kind of separation.
Recent cases from the briefing
Two items listed in the secsig.org briefing’s search index are relevant in 2026.53 Taszk Labs’ advisory of 16 March 2026 reports that on the Xiaomi C400 camera it verified, and potentially other Xiaomi devices, the keypair and random prefix for the miIO handshake come from “the default Additive Lagged Fibonacci Generator of the uClibc library”, and that “After sending 22 packets on average, all future random numbers can be reliably predicted”. The advisory reported at publication that the vendor had issued no patch or CVE more than six months after disclosure.54 The second is a key-handling failure, not a generator failure. Cloudflare’s post of 30 October 2026 listed eight weak intermediate CA keys at eMudhra, with private values 4, 56, 66, 115, 155, 156, 230 and 237, and gave eMudhra’s early explanation of “a mistake in a key generation script”.55 In Mozilla’s incident bug, a preliminary comment by Dennis Jackson says these were P-384 keys that “all used integers less than 256”, recoverable “by just generating the ‘first’ 256 P384 keys”. eMudhra’s later full incident report in the same bug (comment 82) says the keys “were generated correctly on a hardware security module” and that during a wrap and unwrap round-trip “a bug/defect in the import code resulted in a read‑back from the unwrapped object that truncated the private value”.56 For P-384 keys, comparing each public key with the first few hundred multiples of the base point would catch this specific pattern.
What testing and certification can show
NIST’s statistical test suite, SP 800-22 Revision 1a (April 2010), is “a statistical package consisting of 15 tests” for binary sequences. Its abstract limits its role: the tests “may be useful as a first step”, “However, no set of statistical tests can absolutely certify a generator as appropriate for usage in a particular application, i.e., statistical testing cannot serve as a substitute for cryptanalysis.”57 NIST’s page for it records a decision on 19 April 2022 to revise the document.58 TestU01, from Pierre L’Ecuyer and Richard Simard (ACM Transactions on Mathematical Software, 2007), is “a collection of utilities for the empirical statistical testing of uniform random number generators”, and Robert G. Brown’s dieharder, with Dirk Eddelbuettel and David Bauer, is a similar battery.5960 Such suites look for statistical structure, and a failing result can flag some faults. Passing cannot establish that seeds were secret, that state was handled correctly, or that there is no trapdoor: RFC 4086’s example of AES applied to a counter has “excellent statistical randomness properties” and is predictable to anyone with the key, and what makes Dual EC predictable is knowledge of e, which no test applied to the output stream supplies.1
Certification therefore puts its weight on the source and on design review, and each certificate has its own scope. Since 7 November 2020 the Cryptographic Module Validation Program “requires that all FIPS 140-2 and FIPS 140-3 module validation submissions include documentation justifying conformance to SP 800-90B if applicable”; entropy sources can be validated separately, and since SP 800-90C the programme accepts complete random bit generators.9 DRBG algorithm tests, entropy-source, RBG and module validations each describe the listed item within its documented boundary and configuration, as shown in the listing. Under CMVP policy for US and Canadian federal use, FIPS 140-2 modules could be accepted for new and existing systems through 21 September 2026; after that they move to the Historical list and may continue to be used for existing systems only.61 The ScreenOS case shows why assurance about a generator cannot be extended to code outside the assessed boundary.
What to call and what to check
Call the operating system
Every major platform’s documented answer is to take randomness from the kernel or from a library that reseeds from it.
- C on Linux:
getrandom(buf, len, 0). It waits until the pool is initialised. Check every result, even for small requests: compare the returned count with the length requested, loop on short reads, and handle EINTR and other errors.19 - C on OpenBSD and Apple platforms:
arc4random_buf, which OpenBSD reseeds from the kernel and which Apple’s Swift generator itself uses; on OpenBSD,getentropyonly for seeding another generator.222523 - Windows:
ProcessPrngorBCryptGenRandomwith the default algorithm, per Microsoft’s Windows 10 description.12 - Python: the
secretsmodule, which “provides access to the most secure source of randomness that your operating system provides” and “should be used in preference to the default pseudo-random number generator in the random module, which is designed for modelling and simulation, not security or cryptography.”62 - Go:
crypto/rand. The documentation for go1.27.4 (published 10 November 2026) says its Reader usesgetrandom(2)on Linux,arc4random_buf(3)on macOS, iOS and OpenBSD, and ProcessPrng on Windows, and thatRead“never returns an error” and “crashes the program irrecoverably if an error is returned” by the reader underneath.63 - Java:
SecureRandom, letting the provider seed itself. The Java 21 documentation says a new PRNG instance seeds itself from an implementation-specific entropy source on first use, but “This self-seeding will not occur if setSeed was previously called”, and that forsetSeed“The caller should make sure that the seed argument contains enough entropy”.64 What a caller-supplied seed does beyond that depends on the provider, so the safe pattern is not to callsetSeedbefore first use. - JavaScript:
crypto.getRandomValues(), which the W3C Web Cryptography API says implementations should back with “well-established cryptographic pseudo-random number generators seeded with high-quality entropy”.65 MDN says plainly that “Math.random() does not provide cryptographically secure random numbers. Do not use them for anything related to security.”66
Never a simulation generator for secrets
Python’s documentation calls its default generator, the Mersenne Twister, “completely unsuitable for cryptographic purposes”.67 The authors’ FAQ explains: “Any pseudorandom number sequence generated by a linear recursion is insecure, since from sufficiently long subsequence of the outputs, one can predict the rest of the outputs.”68 Their paper gives MT19937 a working area of 624 32-bit words.69
Signatures, boot and clones
- Use deterministic nonces: Ed25519 or Ed448, or ECDSA with RFC 6979; DSA now matters mainly for verifying old signatures. Key generation still needs good randomness, and a hardened implementation may still add randomness for other purposes such as side-channel protection.423743
- Do not generate long-term keys before the pool is ready. On Linux,
getrandomwithoutGRND_NONBLOCKmakes this a wait instead of a silent weakness.19 On embedded devices, give each unit its own seed, provisioned and stored so the attacker cannot read it, and supply it through a path the kernel credits (in Linux 6.18, a bootloader seed counts only withrandom.trust_bootloaderon); a seed copied from the firmware image is the same on every unit and adds no independence. Rotate any keys made before the pool was ready.3517 - After cloning or restoring a VM, check that the hypervisor and guest support a generation-ID notification, and allow for its race: output can repeat before it arrives. It reseeds only the kernel generator, so refresh or reinitialise any generator state owned by applications before they use it again. A public generation ID cannot make already exposed state secret: do not ship a shared seed or credential in a golden image, and treat keys copied into clones, or used while state was duplicated, according to the application’s own recovery requirements.161217
- Run batch GCD over your own RSA public keys, especially keys from appliances. It detects shared primes after the fact; Heninger’s group published code with the original study, and the arithmetic above shows what it computes.3435
- Audit public keys for degenerate values: tiny private scalars on a given curve, repeated public keys across devices.5634 Separately, audit signatures: two signatures under the same key with the same r over different message representatives expose the key and need investigation, while identical deterministic signatures on identical inputs are expected.3735
Failures, causes and fixes
| Failure | Root cause | Reported impact | Prevention | Detection or recovery |
|---|---|---|---|---|
| Debian OpenSSL, 2006 to 2008 | Patch discarded entropy contents; PID was the only varying input | 32,767 possible streams per documented architecture case, at the default PID limit, with the program’s calls and other inputs fixed | Do not patch generators to silence analysers; take seeds from the OS | Weak-key blocklists; regenerate keys |
| Embedded devices, 2012 | Several causes, including default keys; one reproduced mechanism was key generation at boot from a Linux pool in a predictable state | RSA factors shared across devices; DSA keys from repeated nonces | Wait for pool readiness; unique per-device seeds | Batch GCD audits; key rotation |
| PS3, 2010 | ECDSA nonce not varied between signatures (presenters’ account) | Signing private key (presenters’ account) | Deterministic nonces (RFC 6979, EdDSA) | Look for repeated r values |
| Android, 2013 | JCA PRNG improperly initialised | At least one compromised Bitcoin transaction; mechanism not stated | OS-seeded generator (explicit seeding was the 2013 remedy) | Key rotation |
| VM snapshot reuse, 2010 | Restored state used before an effective refresh | In experiments: TLS sessions; Apache DSA key | Kernel reseed on generation ID (racy); refresh application generators; hedged nonces | Rotate keys copied into clones |
| Dual EC in ScreenOS, 2012 to 2015 | Substituted Q; X9.31 post-processing skipped on reseed, which in the analysed default configuration was every call | Passive VPN decryption shown feasible by researchers with their own Q | Generators without unexplained constants; review of the full code path | Patched releases; code review |
| Xiaomi camera, 2026 | uClibc lagged Fibonacci generator for handshake values | Future handshake randomness after about 22 packets, on the tested device | Cryptographic generator from the OS | None reported at publication |
Disputes and open questions
Should a kernel trust RDRAND? The question is whether CPU output may count towards readiness, since both Linux and Windows mix it in. Linux credits it by default and lets administrators refuse with random.trust_cpu=off, in which case readiness in Linux 6.18 waits for 256 credited bits from other sources.2017 The Windows 10 design prefers RDSEED and treats RDRAND as a 128-bit source.12 The AMD resume bug shows a hardware generator failing silently while reporting success.1415 A working hardware source can supply all the entropy a pool needs. If it fails or is predictable, mixing protects the output only when enough independently unpredictable input is already in the state. An operator who trusts the CPU vendor gets an early-ready pool; one whose threat model includes the vendor should turn crediting off and make sure other credited input exists, for example a per-device seed delivered through the bootloader with random.trust_bootloader on.
How good are hardware entropy claims? The circuit behind RDSEED and RDRAND cannot be inspected by the user. Intel’s description of compliance is Intel’s claim, and the CMVP validates a documented submission within its stated scope.119 Microsoft states plainly that “some of our customers consider the designers and implementers of future hardware as their opponents”, which is part of its reason for not driving reseeds from entropy estimates.12
How much entropy is enough at boot? Linux 6.18 answers with a number: readiness at 256 credited bits, with interrupt timings credited at a rough rate and the jitter fallback used where the cycle counter varies enough.1716 Fortuna and the Windows 10 design avoid estimates and rely on reseed schedules across pools.2612 The 2012 study reproduced one way devices could make keys at boot from a predictable pool, alongside default keys and other faults, and the 2016 follow-up measured shared factors and patching over the following years.3536 The revert of 2022 shows the cost of waiting on architectures without a fast cycle counter.16 A credited bit is still an estimate, and 800-90B’s answer is a per-source assessment.
Can standards bodies be trusted after Dual EC? NIST withdrew the generator “in response to the lack of public confidence in the algorithm”; the three remaining DRBGs are built from hash functions and block ciphers.457 The same standards supply the health tests, estimators and validation programme that make entropy sources comparable, and RFC 6979 builds on HMAC_DRBG.37 The lesson drawn here is specific: a design that depends on a constant should publish how it was generated, and implementers should ask why a generator researchers had long called “extremely slow” and “backdoorable” was anyone’s default.44
Conclusion
A computer gets unpredictability from inputs an attacker cannot observe or reproduce, usually a small amount of physical noise or a provisioned seed, and stretches it with a deterministic generator that no efficient adversary should be able to tell from uniform. The input is assessed as min-entropy. Designs can add health tests, conditioning, pools that recover from compromise, and generators with backtracking resistance; the Windows 10 design uses an SP 800-90A DRBG, Apple’s kernel generator is Fortuna-derived, and Linux uses its own BLAKE2s and ChaCha construction, so which safeguards apply depends on the system.
These designs rest on assumptions, and each case examined here broke one. The seed must stay unpredictable: a distribution patch reduced it to a process ID. The pool must be seeded before use: some devices made keys at boot from a predictable pool. State must not be duplicated: restored snapshots replayed it. Signing nonces must be secret and must not repeat across different messages under one key: signing code reused one. The design must have no trapdoor: Dual EC’s security rested on a constant nobody explained, and in the one deployment where a substituted Q is documented, a bug also bypassed the safeguard on reseed. Passing statistical tests cannot establish any of these, so the controls are structural: read the operating system’s generator after it is ready, sign deterministically, give each device and clone its own seed and refresh application state after cloning, and audit deployed keys for shared factors and tiny scalars. The open questions are about trust: in hardware sources that cannot be inspected, in how many bits a boot-time estimate really holds, and in how the constants of standards are chosen.
Footnotes
- D. Eastlake, J. Schiller, S. Crocker, RFC 4086, “Randomness Requirements for Security” (BCP 106), RFC Editor, June 2005. https://www.rfc-editor.org/rfc/rfc4086 (opens in a new tab) ↩1 ↩2 ↩3
- D. McGrew, RFC 5116, “An Interface and Algorithms for Authenticated Encryption”, RFC Editor, January 2008, section 3.1. https://www.rfc-editor.org/rfc/rfc5116 (opens in a new tab) ↩
- M. Sönmez Turan, E. Barker, J. Kelsey, K. McKay, M. Baish, M. Boyle, NIST SP 800-90B, “Recommendation for the Entropy Sources Used for Random Bit Generation”, NIST, January 2018 (PDF). https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-90B.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10
- D. Boneh and V. Shoup, “A Graduate Course in Applied Cryptography”, version 0.6, January 2023, chapter 3 (Attack Game 3.1, Definition 3.1, sections 3.4.2 and 3.5, Theorem 3.6). https://toc.cryptobook.us/book.pdf (opens in a new tab) ↩1 ↩2
- M. Blum and S. Micali, “How to generate cryptographically strong sequences of pseudo random bits”, 23rd Annual Symposium on Foundations of Computer Science, November 1982, pp. 112-117; bibliographic record only (Crossref). https://api.crossref.org/works/10.1109/sfcs.1982.72 (opens in a new tab) ↩
- A. C. Yao, “Theory and application of trapdoor functions”, 23rd Annual Symposium on Foundations of Computer Science, November 1982, pp. 80-91; bibliographic record only (Crossref). https://api.crossref.org/works/10.1109/sfcs.1982.45 (opens in a new tab) ↩
- E. Barker and J. Kelsey, NIST SP 800-90A Rev. 1, “Recommendation for Random Number Generation Using Deterministic Random Bit Generators”, NIST, June 2015 (PDF). https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-90Ar1.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6
- E. Barker, J. Kelsey, K. McKay, A. Roginsky, M. Sönmez Turan, NIST SP 800-90C, “Recommendation for Random Bit Generator (RBG) Constructions”, NIST CSRC publication page, September 2025. https://csrc.nist.gov/pubs/sp/800/90/c/final (opens in a new tab) ↩
- “Entropy Validations”, Cryptographic Module Validation Program, NIST CSRC, accessed 1 December 2026. https://csrc.nist.gov/projects/cryptographic-module-validation-program/entropy-validations (opens in a new tab) ↩1 ↩2 ↩3
- S. Müller, “Jitter RNG”, chronox.de, accessed 1 December 2026. https://www.chronox.de/jent/ (opens in a new tab) ↩1 ↩2
- Intel, “Intel Digital Random Number Generator (DRNG) Software Implementation Guide”, Wayback Machine copy of 13 February 2024. https://web.archive.org/web/20240213160820/https://www.intel.com/content/www/us/en/developer/articles/guide/intel-digital-random-number-generator-drng-software-implementation-guide.html (opens in a new tab) ↩1 ↩2
- N. Ferguson, “The Windows 10 random number generation infrastructure”, Microsoft whitepaper, October 2019 (PDF). https://download.microsoft.com/download/1/c/9/1c9813b8-089c-4fef-b2ad-ad80e79403ba/Whitepaper%20-%20The%20Windows%2010%20random%20number%20generation%20infrastructure.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10
- systemd issue #11810, “RDRAND on AMD CPUs does not work”, opened 23 February 2019, GitHub. https://github.com/systemd/systemd/issues/11810 (opens in a new tab) ↩
- L. Poettering, “random-util: eat up bad RDRAND values seen on AMD CPUs”, systemd commit 5fb35fb, 10 May 2019, GitHub. https://github.com/systemd/systemd/commit/5fb35fbc783516e2014115c3488134a2afb8494c (opens in a new tab) ↩1 ↩2
- T. Lendacky, “x86/CPU/AMD: Clear RDRAND CPUID bit on AMD family 15h/16h”, Linux kernel commit c49a0a80137c, 19 August 2019, GitHub mirror. https://github.com/torvalds/linux/commit/c49a0a80137c7ca7d6ced4c812c9e07a949f6f24 (opens in a new tab) ↩1 ↩2
- J. A. Donenfeld, “Random number generator enhancements for Linux 5.17 and 5.18”, zx2c4.com, 18 March 2022, with update of 22 March 2022. https://www.zx2c4.com/projects/linux-rng-5.17-5.18/ (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7
- drivers/char/random.c, Linux kernel v6.18 source, GitHub mirror; BLAKE2S_HASH_SIZE = 32 in include/crypto/blake2s.h at the same tag. https://github.com/torvalds/linux/blob/v6.18/drivers/char/random.c (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9
- random(4), Linux manual page, man7.org, accessed 1 December 2026. https://man7.org/linux/man-pages/man4/random.4.html (opens in a new tab) ↩
- getrandom(2), Linux manual page, man7.org, accessed 1 December 2026. https://man7.org/linux/man-pages/man2/getrandom.2.html (opens in a new tab) ↩1 ↩2 ↩3
- “The kernel’s command-line parameters” (random.trust_cpu, random.trust_bootloader), Linux kernel documentation, kernel.org, accessed 1 December 2026. https://www.kernel.org/doc/Documentation/admin-guide/kernel-parameters.txt (opens in a new tab) ↩1 ↩2
- “ProcessPrng function”, Win32 API reference, Microsoft Learn, accessed 1 December 2026. https://learn.microsoft.com/en-us/windows/win32/seccng/processprng (opens in a new tab) ↩
- arc4random(3), OpenBSD manual page, accessed 1 December 2026. https://man.openbsd.org/arc4random.3 (opens in a new tab) ↩1 ↩2
- getentropy(2), OpenBSD manual page, accessed 1 December 2026. https://man.openbsd.org/getentropy.2 (opens in a new tab) ↩1 ↩2
- “Random number generation”, Apple Platform Security Guide, Apple, published 19 December 2024. https://support.apple.com/guide/security/random-number-generation-seca0c73a75b/web (opens in a new tab) ↩
- “SystemRandomNumberGenerator”, Swift standard library documentation, Apple Developer, accessed 1 December 2026. https://developer.apple.com/documentation/swift/systemrandomnumbergenerator (opens in a new tab) ↩1 ↩2
- N. Ferguson, B. Schneier and T. Kohno, Cryptography Engineering (Wiley, 2010), chapter 9, “Generating Randomness”, describing Fortuna, excerpt on schneier.com (PDF). https://www.schneier.com/wp-content/uploads/2015/12/fortuna.pdf (opens in a new tab) ↩1 ↩2
- “When Good Randomness Goes Bad: Virtual Machine Reset Vulnerabilities and Hedging Deployed Cryptography”, NDSS 2010 paper page, NDSS Symposium. https://www.ndss-symposium.org/ndss2010/when-good-randomness-goes-bad-virtual-machine-reset-vulnerabilities-and-hedging-deployed/ (opens in a new tab) ↩
- T. Ristenpart and S. Yilek, “When Good Randomness Goes Bad: Virtual Machine Reset Vulnerabilities and Hedging Deployed Cryptography”, NDSS 2010 (PDF). https://pages.cs.wisc.edu/~rist/papers/sslhedge.pdf (opens in a new tab) ↩1 ↩2
- Debian Security Advisory DSA-1571-1, “openssl – predictable random number generator”, Debian, 13 May 2008; Wayback Machine copy of 7 September 2008. https://web.archive.org/web/20080907012738/http://www.debian.org/security/2008/dsa-1571 (opens in a new tab) ↩
- CVE-2008-0166, CVE record (JSON), CVE Program, published 13 May 2008. https://cveawg.mitre.org/api/cve/CVE-2008-0166 (opens in a new tab) ↩
- S. Yilek, E. Rescorla, H. Shacham, B. Enright, S. Savage, “When Private Keys are Public: Results from the 2008 Debian OpenSSL Vulnerability”, IMC ‘09, 4-6 November 2009 (PDF). https://cseweb.ucsd.edu/~hovav/dist/debiankey.pdf (opens in a new tab) ↩1 ↩2
- “SSLkeys”, Debian Wiki, Wayback Machine copy of 2 December 2010. https://web.archive.org/web/20101202025219/http://wiki.debian.org/SSLkeys (opens in a new tab) ↩
- A. K. Lenstra, J. P. Hughes, M. Augier, J. W. Bos, T. Kleinjung, C. Wachter, “Ron was wrong, Whit is right”, Cryptology ePrint Archive 2012/064, received 14 February 2012. https://eprint.iacr.org/2012/064 (opens in a new tab) ↩
- N. Heninger, Z. Durumeric, E. Wustrow, J. A. Halderman, “Widespread Weak Keys in Network Devices”, factorable.net project page, accessed 1 December 2026. https://factorable.net/ (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- N. Heninger, Z. Durumeric, E. Wustrow, J. A. Halderman, “Mining Your Ps and Qs: Detection of Widespread Weak Keys in Network Devices”, extended version rev. 2, 11 July 2012, of the USENIX Security 2012 paper (PDF). https://factorable.net/weakkeys12.extended.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8
- M. Hastings, J. Fried, N. Heninger, “Weak Keys Remain Widespread in Network Devices”, IMC 2016; raw Wayback Machine copy of the authors’ PDF, captured 7 September 2018. https://web.archive.org/web/20180907160219id_/https://www.cis.upenn.edu/~nadiah/papers/weak-keys/weak-keys.pdf (opens in a new tab) ↩1 ↩2
- T. Pornin, RFC 6979, “Deterministic Usage of the Digital Signature Algorithm (DSA) and Elliptic Curve Digital Signature Algorithm (ECDSA)”, RFC Editor, August 2013. https://www.rfc-editor.org/rfc/rfc6979 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6
- “Console Hacking 2010: PS3 Epic Fail”, bushing, marcan and sven, 27C3 schedule entry 4087, Chaos Computer Club, 29 December 2010. https://fahrplan.events.ccc.de/congress/2010/Fahrplan/events/4087.en.html (opens in a new tab) ↩
- fail0verflow, “Console Hacking 2010” slides, 27C3, 29 December 2010 (PDF). https://fahrplan.events.ccc.de/congress/2010/Fahrplan/attachments/1780_27c3_console_hacking_2010.pdf (opens in a new tab) ↩1 ↩2
- “Android Security Vulnerability”, Bitcoin.org network alert, 11 August 2013. https://bitcoin.org/en/alert/2013-08-11-android (opens in a new tab) ↩
- A. Klyubin, “Some SecureRandom Thoughts”, Android Developers Blog, Google, 14 August 2013. https://android-developers.googleblog.com/2013/08/some-securerandom-thoughts.html (opens in a new tab) ↩
- S. Josefsson and I. Liusvaara, RFC 8032, “Edwards-Curve Digital Signature Algorithm (EdDSA)”, RFC Editor, January 2017. https://www.rfc-editor.org/rfc/rfc8032 (opens in a new tab) ↩1 ↩2
- “NIST Revises the Digital Signature Standard (DSS) and Publishes a Guideline for Elliptic Curve Domain Parameters”, NIST CSRC news, 3 February 2023. https://csrc.nist.gov/News/2023/nist-releases-fips-186-5-and-sp-800-186 (opens in a new tab) ↩1 ↩2
- S. Checkoway et al., “On the Practical Exploitability of Dual EC in TLS Implementations”, 23rd USENIX Security Symposium, 20-22 August 2014 (PDF). https://www.usenix.org/system/files/conference/usenixsecurity14/sec14-paper-checkoway.pdf (opens in a new tab) ↩1 ↩2 ↩3
- “NIST Removes Cryptography Algorithm from Random Number Generator Recommendations”, NIST news release, 21 April 2014. https://www.nist.gov/news-events/news/2014/04/nist-removes-cryptography-algorithm-random-number-generator-recommendations (opens in a new tab) ↩1 ↩2 ↩3
- “Crypto 2007 rump session”, programme, rump2007.cr.yp.to, 21 August 2007. http://rump2007.cr.yp.to/ (opens in a new tab) ↩
- D. Shumow and N. Ferguson, “On the Possibility of a Back Door in the NIST SP800-90 Dual Ec Prng”, CRYPTO 2007 rump session slides, 21 August 2007 (PDF). http://rump2007.cr.yp.to/15-shumow.pdf (opens in a new tab) ↩
- N. Perlroth, J. Larson, S. Shane, “Revealed: The NSA’s Secret Campaign to Crack, Undermine Internet Security”, ProPublica (co-published with The New York Times and The Guardian), 5 September 2013. Press report. https://www.propublica.org/article/the-nsas-secret-campaign-to-crack-undermine-internet-encryption (opens in a new tab) ↩
- J. Menn, “Exclusive: Secret contract tied NSA and security industry pioneer”, Reuters, 20 December 2013; Wayback Machine copy of 2 January 2015. Press report. https://web.archive.org/web/20150102035729/http://www.reuters.com/article/2013/12/20/us-usa-security-rsa-idUSBRE9BJ1C220131220 (opens in a new tab) ↩
- B. Worrall, “Important Announcement about ScreenOS”, Juniper Networks Security Incident Response forum, 17 December 2015; Wayback Machine copy of 4 January 2017. Vendor statement. https://web.archive.org/web/20170104182216/http://forums.juniper.net/t5/Security-Incident-Response/Important-Announcement-about-ScreenOS/ba-p/285554 (opens in a new tab) ↩
- CVE-2015-7756, CVE record (JSON), CVE Program, published 19 December 2015. https://cveawg.mitre.org/api/cve/CVE-2015-7756 (opens in a new tab) ↩
- S. Checkoway, S. Cohney, C. Garman, M. Green, N. Heninger, J. Maskiewicz, E. Rescorla, H. Shacham, R.-P. Weinmann, “A Systematic Analysis of the Juniper Dual EC Incident”, CCS 2016; Cryptology ePrint Archive 2016/376, Wayback Machine copy of 22 January 2018 (PDF). https://web.archive.org/web/20180122014221id_/https://eprint.iacr.org/2016/376.pdf (opens in a new tab) ↩1 ↩2
- Security briefing search index, secsig.org, read 1 December 2026 (entries for the Taszk Labs and Cloudflare posts). https://secsig.org/briefing/search-index.json (opens in a new tab) ↩
- B. Hartmann, “TVE-2026-02: Xiaomi miIO client cryptographically weak PRNG”, taszk.io labs, 16 March 2026. Researcher advisory. https://labs.taszk.io/blog/post/113_mi_rng_predict/ (opens in a new tab) ↩
- M. Guerreiro, R. Carr, M. de Moura, B. Westerbaan, “4 real? Tracking exploitation and patching of eMudhra’s weak keys”, Cloudflare Blog, 30 October 2026. Vendor blog. https://blog.cloudflare.com/emudhra-patching/ (opens in a new tab) ↩
- Bug 2083449, “eMudhra: Private key compromise of Intermediate Certificates”, Mozilla Bugzilla: comment 5 by Dennis Jackson (marked preliminary), October 2026, and comment 82, eMudhra’s full incident report, November 2026. https://bugzilla.mozilla.org/show_bug.cgi?id=2083449 (opens in a new tab) ↩1 ↩2
- A. Rukhin et al., NIST SP 800-22 Rev. 1a, “A Statistical Test Suite for Random and Pseudorandom Number Generators for Cryptographic Applications”, NIST, April 2010 (PDF). https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-22r1a.pdf (opens in a new tab) ↩
- A. Rukhin et al., NIST SP 800-22 Rev. 1a, “A Statistical Test Suite for Random and Pseudorandom Number Generators for Cryptographic Applications”, NIST CSRC publication page (April 2010; planning note of 19 April 2022). https://csrc.nist.gov/pubs/sp/800/22/r1/upd1/final (opens in a new tab) ↩
- P. L’Ecuyer and R. Simard, “TestU01: Empirical Testing of Random Number Generators”, Université de Montréal, accessed 1 December 2026. https://simul.iro.umontreal.ca/testu01/tu01.html (opens in a new tab) ↩
- R. G. Brown, D. Eddelbuettel, D. Bauer, “Dieharder: A Random Number Test Suite”, Duke University Physics, accessed 1 December 2026. https://webhome.phy.duke.edu/~rgb/General/dieharder.php (opens in a new tab) ↩
- “Cryptographic Module Validation Program”, NIST CSRC, accessed 1 December 2026. https://csrc.nist.gov/projects/cryptographic-module-validation-program (opens in a new tab) ↩
- “secrets: Generate secure random numbers for managing secrets”, Python 3 documentation, accessed 1 December 2026. https://docs.python.org/3/library/secrets.html (opens in a new tab) ↩
- “crypto/rand”, Go standard library documentation, version go1.27.4 (published 10 November 2026), pkg.go.dev. https://pkg.go.dev/crypto/rand@go1.27.4 (opens in a new tab) ↩
- “Class SecureRandom”, Java SE 21 API documentation, Oracle, accessed 1 December 2026. https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/security/SecureRandom.html (opens in a new tab) ↩
- “Web Cryptography API”, W3C, getRandomValues method, accessed 1 December 2026. https://www.w3.org/TR/WebCryptoAPI/ (opens in a new tab) ↩
- “Math.random()”, MDN Web Docs, Mozilla, last modified 10 July 2025. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/random (opens in a new tab) ↩
- “random: Generate pseudo-random numbers”, Python 3 documentation, accessed 1 December 2026. https://docs.python.org/3/library/random.html (opens in a new tab) ↩
- M. Matsumoto, “Mersenne Twister FAQ”, Hiroshima University, accessed 1 December 2026. http://www.math.sci.hiroshima-u.ac.jp/m-mat/MT/efaq.html (opens in a new tab) ↩
- M. Matsumoto and T. Nishimura, “Mersenne Twister: A 623-dimensionally equidistributed uniform pseudorandom number generator”, ACM Transactions on Modeling and Computer Simulation, 1998, authors’ preprint (PDF). https://www.math.sci.hiroshima-u.ac.jp/m-mat/MT/ARTICLES/mt.pdf (opens in a new tab) ↩

SecSIG