Recommendations and illustrations for the evaluation of photonic random number generators

The never-ending quest to improve the security of digital information combined with recent improvements in hardware technology has caused the field of random number generation to undergo a fundamental shift from relying solely on pseudo-random algorithms to employing optical entropy sources. Despite these significant advances on the hardware side, commonly used statistical measures and evaluation practices remain ill-suited to understand or quantify the optical entropy that underlies physical random number generation. We review the state of the art in the evaluation of optical random number generation and recommend a new paradigm: quantifying entropy generation and understanding the physical limits of the optical sources of randomness. In order to do this, we advocate for the separation of the physical entropy source from deterministic post-processing in the evaluation of random number generators and for the explicit consideration of the impact of the measurement and digitization process on the rate of entropy production. We present the Cohen-Procaccia estimate of the entropy rate $h(\epsilon,\tau)$ as one way to do this. In order to provide an illustration of our recommendations, we apply the Cohen-Procaccia estimate as well as the entropy estimates from the new NIST draft standards for physical random number generators to evaluate and compare three common optical entropy sources: single photon time-of-arrival detection, chaotic lasers, and amplified spontaneous emission.

However, optical systems are especially well-suited for random number generation due resistance to external interference, speed, and access to quantum mechanical processes. Therefore, even though our analysis and recommendations are relevant for all physical entropy sources, we focus specifically on optical systems.
Chaotic systems amplify uncertainties in initial conditions and sources of intrinsic noise [35,36]; only in the last decade has this inherent unpredictability been harnessed for random number generation in the form of chaotic lasers [18,[37][38][39][40][41][42][43][44][45]. For a review of chaotic lasers including their applications to RNGs, see ref. [46] and [47]. While the authors know of no commercially available physical RNGs based on chaotic lasers, new developments in photonic integrated circuits [45] and real-time, highspeed bit streaming [48] for chaotic laser RNGs lay the groundwork for commercialization.
Physical sources of randomness and PRNGs are best used in complementary roles. Physical sources can provide true randomness, but the raw output of a physical source is typically biased and not uniformly distributed. PRNGs, on the other hand, can provide a binary sequence that is unbiased and uniformly distributed but completely deterministic. The most secure RNGs combine the benefits of both methods by using physical sources to seed PRNGs or other post-processing algorithms; such implementations are used by the Intel Secure Key (the RDRAND command), available in Ivy Bridge processors [4], and in the commercially available optical RNGs provided by PicoQuant [1], IDQuantique [2], and Whitewood Encryption [3]. Official guidelines for how to combine a physical entropy source and a PRNG are currently under development by the U.S. National Institute of Standards and Technology (NIST) [49].
Due to the increasing importance of the security of digital information and the wide variety of physical methods used to generate random numbers, a standard set of evaluation metrics for random number generation is essential. Previous works have used a variety of methods to estimate the entropy of physical sources of randomness [8][9][10][11]19,23,[25][26][27][40][41][42]44,45,50]; however, many of these techniques assume that there are no inter-sample correlations. As of this writing, there is no widely accepted technique to estimate the entropy of physical entropy sources. It is important that evaluation metrics and standards reflect the fundamental differences between PRNGs and physical entropy sources; however, common testing practices do not currently distinguish between the two. We are not the first to recognize these problems; indeed, NIST is currently developing a new set of standards and evaluation techniques specifically for physical entropy sources [51]. These new standards recommend entropy rate as the figure of merit for physical entropy sources.
In this Perspectives article, we review the current practices in the evaluation of physical RNGs and call for a renewed emphasis on understanding the origin of and physical and information theoretical limitations on the randomness in the design, testing, and validation of optical entropy sources. We advocate for the separation of the physical entropy source from deterministic post-processing in the evaluation process and for the use of the h( , τ ) entropy rate analysis [52,53]. The h( , τ ) entropy rate analysis emphasizes that the entropy rate is a function of measurement resolution and sampling period τ . While the existing statistical tests used for physical RNG evaluation offer a simple "pass or fail" evaluation, the h( , τ ) analysis provides insight that is more relevant for the design of optical RNGs, including information about the physical origins of randomness and the impact of the digitization process on entropy extraction. Finally, we use the h( , τ ) analysis to Our recommendation is to use the raw digitized data to make an estimate of the rate at which one is entitled to harvest entropy, then use appropriate post-processing to extract that entropy from the digitized data. The measurement parameters and τ and the post-processing method should be carefully chosen such that entropy is extracted from the desired physical entropy source rather than from measurement noise. The sample time series show an analog signal, a digitized signal with measurement parameters and τ , and a post-processed output bit sequence.
compare three state-of-the-art optical entropy sources: single photon counting, chaotic lasers, and amplified spontaneous emission noise.
In section 1, we review current physical RNG evaluation practices and present our recommendations. In particular, section 1.1 describes the current standards for physical RNG evaluation and some of its shortcomings. In section 1.2 we briefly describe the new NIST draft recommendations for the evaluation of physical random number generators, and we provide our own recommendations in section 1.3. In section 2, we review three different methods of optical entropy generation and present the results of our own measurement and evaluation of these entropy sources. We provide some concluding thoughts and an outlook to the future of physical RNG in section 3.

Evaluation of Physical Random Number Generators
Evaluating a PRNG is relatively straightforward: NIST has published specific guidelines for the design and testing of PRNGs [54]. In contrast, physical RNGs are much more difficult to evaluate due in part to the wide variety of physical processes that can be used [51].

State of the art
The most common procedure used to evaluate physical RNGs, depicted in Fig. 1a, is the following: collect data from the physical system; perform deterministic post-processing (such as von Neumann's method) and/or conditioning (such as least significant bit extraction [39], exclusive or (XOR) [37], and hashing [8]) on the data in order to remove bias and whiten the output; and run a suite of statistical tests (such as the NIST suite [55] or DIEHARD [56]) on the output bit sequence. The  distinction between post-processing and conditioning is defined somewhat arbitrarily by NIST [51], as discussed in the next section. The rate of random bit generation claimed is typically the highest possible rate such that the output bit sequence can pass the suite of statistical tests. As we will discuss, this method of evaluating physical RNGs has significant shortcomings. Figure 2 provides a survey of some recently published results using five common optical techniques for random number generation. The bit rates given are those claimed by the authors, and the sampling rate is the number of samples per second measured by the digitizer. In many cases the claimed bit rate is higher than the sampling rate; this is a result of the digitizer obtaining more than 1 bit per sample (e.g., by using an 8-bit analog to digital converter).
An information theoretical upper bound on the entropy rate is given by the Shannon-Hartley limit [57] h where N is the number of bits per sample that the digitizer measures at a given measurement resolution , and BW is the bandwidth of the signal measured by the digitizer. BW is limited by the analog bandwidth of the physical entropy source as well as the detectors and digitizer. Eq. 1 gives the maximum rate at which information can be obtained from the signal by the digitizer [57]. Of course, Eq. 1 overestimates the upper bound because the effective bandwidth is often less than the standard signal bandwidth [58] and the effective number of bits of a digitizer is often less than the stated number of bits [59]. Fig. 2 reveals a significant shortcoming in the current practice of quantifying optical random number generation: several of the recently reported RNG systems, while producing data that passes all of the existing statistical tests, achieve a rate that exceeds even our overestimate of the Shannon-Hartley limit (horizontal black bars). In most of the violating cases, the sampling rate is higher than the Nyquist rate (2BW) of the signal, resulting in strong inter-sample correlations. Postprocessing may obscure these correlations from statistical tests; however, because post-processing is deterministic it cannot increase the rate of entropy production.
When one considers that many PRNGs pass the statistical tests, it is not surprising that those statistical tests can be passed by post-processing the output of a physical system, even if that output is not random. While statistical tests can provide some assurance of statistical uniformity, they provide no guarantee that there is no underlying pattern that could later be discovered. Therefore, statistical tests are perhaps best viewed as a sanity check against blatant errors, rather than a proof of randomness.
Statistical test suites are also limited to a simple "pass or fail" evaluation that provides little insight into the physical processes generating the random numbers. Choosing a physical process that can be theoretically justified as random and then showing that the measured entropy is actually coming from that random process provides much greater assurance of unpredictability than can simply putting a sequence of bits through statistical tests that any good pseudo-random number generator will pass.
While there is nothing wrong with having the sole aim of passing statistical tests, physical RNGs that do this while violating information theory limits are perhaps better called physical-based PRNGs, rather than true physical RNGs, as suggested in refs. [50] and [60].
The upper bound on entropy harvesting provided by Eq. 1 assumes that the probability density function (PDF) is uniform, the maximal entropy distribution. For small (high resolution), one can find a more stringent upper bound on the entropy rate by accounting for the fact that PDFs found in physical systems are generally not uniform [52]: where p(x) is the PDF of the physical entropy source, u(x) is the uniform distribution over the interval of x-values for which p(x) is non-zero, and D KL (p(x)||u(x)) denotes the relative entropy or Kullback-Leibler divergence [61] of u(x) from p(x), and τ −1 is the sampling rate; according to the Nyquist theorem, one cannot obtain more entropy by sampling faster than 2BW [57]. Eq. 2 simply says that the maximum obtainable entropy rate is the maximum sampling rate times the average entropy per sample. For further discussion on the h 0 limit, see the Appendix. We emphasize that Eq. 2 is valid only for fine measurement resolution; in the case of thresholding (N =1 bit), one can always obtain h(N ) = τ −1 bits/s for any independent, identically distributed (IID) random process by setting the threshold at the median. The sampling rate for thresholding is also limited by the Nyquist rate 2BW . Figure 3 illustrates the relationships between these information theoretical limitations on obtainable entropy rates. The limits in Eq. 2 are information theoretical limits that depend on the specifications of the measurement apparatus and on the bandwidth and PDF of the physical system; an additional physical limit, the Kolmogorov-Sinai (metric) entropy rate, exists for dynamical (chaotic) systems. We discuss the Kolmogorov-Sinai entropy rate in sections 1.3.1 and 2.2.

New NIST Draft Recommendations
The NIST Draft Recommendation for the Entropy Sources Used for Random Bit Generation [51] tries to resolve some of these problems by separating out the algorithmic, pseudo-random parts of random number generation from the physical entropy source. It also gives recommendations on how to combine the pseudo-random algorithm and the entropy source once they have been separately validated [49]. The NIST draft recommendation also requires a justification of how the entropy source works and why it produces acceptable entropy.
The NIST draft standards are based on an entropy source model similar to the one shown in Fig.  1b; The only difference is that it does allow for some simple post-processing techniques to be applied to the raw digitized data before estimation of the entropy rate. NIST distinguishes post-processing (only von Neumann's method, linear filtering method, or length-of-runs method) from conditioning (such as some hash functions), which has fewer restrictions and is not allowed to increase the entropy estimate.
For entropy sources that are potentially not IID, the entropy estimation procedure is quite simple. Run two suites of tests on the (post-processed but not conditioned) data. The first suite of tests estimates the min-entropy [62] per sample in the data set; the min-entropy is designed to provide a  : Illustration of information theoretical limits for physical RNG. The Shannon-Hartley limit (solid black line, Eq. 1) is the theoretical upper limit for rate of information transfer for a system with a given bandwidth. h 0 (dashed black line, Eq. 2) is a correction to the Shannon-Hartley limit obtained by accounting for non-uniformity of the PDF of the physical process generating the entropy. The Shannon-Hartley limit has a slope of τ −1 max = 2BW bits per second per bit of resolution, while the slope of h 0 is min(τ −1 , 2BW ) bits per second per bit of resolution. Most RNG designers want to push the limit of random bit generation, so here we show the slope of h 0 as the maximum of 2BW bits per second per bit of resolution. The x-intercept of h 0 is given by the Kullback-Leibler divergence of the uniform distribution from the experimental probability distribution. The h 0 limit is only valid for fine resolution; for IID systems an entropy rate of τ −1 bits per second can always be obtained by thresholding (N = 1, blue dotted line). The sampling rate for thresholding is also limited by the Nyquist rate 2BW . The region of entropy rates that is unobtainable according to the limits provided by Eqs. 1 and 2 is indicated by the gray shading.
conservative estimate of the entropy. The second suite of tests is a pass/fail set of so-called "Restart Tests": These ensure that the entropy source does not behave the same way each time it is restarted. We will discuss only the entropy estimation suite. If a conditioning procedure is used, one should adjust down the min-entropy estimate if appropriate, as described in the NIST recommendation [51]. The resulting estimate of min-entropy per sample gives the upper limit on the rate at which entropy can be extracted from the source.
The min-entropy estimation suite includes 10 different tests, and the final min-entropy per sample estimate is the minimum of all the estimates. We have run all 10 tests on our data, but since most of them give similar results we discuss only two of the estimates here: the most common value (MCV) estimate and the Markov estimate. The simplest entropy estimate is the MCV estimate. It assumes the signal has no correlations and estimates the entropy as − log 2 (p max ), where p max is the fraction of samples appearing in the most common bin. The second entropy estimate is the Markov estimate, which takes into account first-order correlations. For a complete description of all the tests, see ref. [51].
We support NIST's efforts to separate the evaluation of pseudo-random algorithms and physical entropy sources. The requirement to justify the workings of the entropy source and to provide an explicit statement of the expected entropy rate places long overdue emphasis on understanding the physics of the entropy source.
The NIST draft recommendation allows some post-processing before the entropy analysis, but deterministic algorithms cannot increase the entropy rate and serve only to make the entropy estimation process more difficult. Indeed, this was recently shown for the commonly used post-processing technique of least significant bit extraction [50]. It is known that some of the tests in the NIST suite severely underestimate the min-entropy of entropy sources with normal distributions [63]; this is a real problem because many of the best physical entropy sources have normal or approximately normal PDFs. Thus, the NIST test suite unintentionally encourages designers of these systems to include post-processing before testing, since this is the only way their source can receive a high entropy estimate from the NIST suite. The NIST draft recommendation does not address the details of the digitization process, which has a bandwidth due to the detection apparatus, measurement resolution , and sampling frequency τ −1 that all impact the rate at which entropy can be harvested from a physical system. Finally, the NIST draft standards do not mention chaotic entropy sources, even though it is well-known that entropy can be harvested from chaotic systems due to their sensitive dependence on initial conditions [37,46,64]. In light of these concerns, we provide some additional recommendations to designers and evaluators of physical entropy sources in the next section.

Recommendation: A dynamical systems approach to entropy estimation
Both stochastic and chaotic physical systems have been used to generate entropy at high rates. It is therefore important to have techniques that can accurately estimate the entropy from both stochastic and chaotic sources. For this, we recommend a dynamical systems approach to entropy estimation. Our first recommendation regards the role of post-processing in the evaluation of RNGs. As we have previously mentioned, deterministic post-processing algorithms are useful for extracting entropy but cannot increase the entropy production rate of the physical source. In order to obtain a more accurate and insightful measure of the suitability of a physical system for random number generation, we recommend estimating the rate of entropy production directly from the raw digitized data. Post-processing and conditioning techniques can then be chosen to extract random bits from the physical source at a rate up to the entropy rate. This procedure is depicted in Fig. 1b.
As described above, many different physical processes can generate entropy. It is even possible for a single system to have multiple sources of entropy; for example, a chaotic laser entropy source might have entropy from the chaotic dynamics (which amplify intrinsic quantum mechanical noise from spontaneous emission) and from electronic noise in the detector. We therefore recommend that designers take care in choosing measurement parameters-measurement resolution and sampling period τ -and post-processing techniques that extract entropy from the desired physical source. In the rest of this section, we present h( , τ ) as a technique to guide these choices.
1.3.1 Noise, chaos, and h( , τ ) Gaspard and Wang [52] have shown that h( , τ ) estimated by the Cohen-Procaccia algorithm [65] can be used to directly compare the entropy production of stochastic and chaotic processes. h( , τ ) treats the entropy rate as a function of the measurement resolution and the sampling rate τ −1 . Such an analysis can provide insight into the type of physical process (stochastic or chaotic) that is generating the entropy at a given measurement resolution or time scale. For example, in a deterministic chaotic system as the measurement resolution N increases, h( , τ ) approaches a constant given by the Kolmogorov-Sinai entropy rate; however, in a purely stochastic system, h( , τ ) scales as N [52]. These predictions were recently verified experimentally [53]. In the context of physical RNGs, the h( , τ ) analysis can guide the choice of the best , τ , and post-processing method to extract entropy from the desired physical source.
We note that in all cases, the sampling rate τ is the embedding delay. For more details on the Cohen-Procaccia algorithm and its ability to accurately estimate the entropy rates for stochastic and chaotic processes, see the Appendix and ref. [52].
The h( , τ ) analysis is not limited to continuous time series; it can also be applied to physical entropy sources based on discrete events such as single photon detection. For example, entropy sources using single photon time-of-arrival measurements [8,9,11] can be analyzed by considering the entropy rate as a function of the temporal precision ( ) of the measurement of the arrival times and of the maximum count rate (τ −1 ), as we show in the section 2.1 Despite these important advantages, the h( , τ ) analysis has only recently been applied in the context of physical random number generation [53]. The RNG system in ref. [53] was designed to study the ( , τ ) entropy rate estimate on low-dimensional chaotic experimental data and generated only a few hundreds of bits of entropy per second. In the following sections, we use the h( , τ ) analysis to compare three state-of-the-art optical RNG techniques: single photon time-of-arrival measurements, digitization of chaotic laser data, and digitization of amplified spontaneous emission noise data. An h( , τ ) analysis can be performed with any entropy estimation method; we use the Cohen-Procaccia estimate since it has been shown to work for both chaotic and stochastic sources of entropy [52]. While the NIST draft [51] does not discuss h( , τ ), we also compute an h( , τ ) using the MCV and Markov estimates from the NIST suite [51] in order to compare with the Cohen-Procaccia estimate.
2 Review of some optical entropy sources

RNG with Single Photon Detection
The detection of single photons is perhaps the most established optical RNG technique. There are many different techniques for generating randomness from single photon detection; for a recent review, see ref. [34]. Perhaps the most straightforward way is to send a single photon through a 50:50 beam splitter and assign a "0" if it is detected at one output port and a "1" if it is detected at the other; this is the method used by the commercial RNG from ID Quantique [2], and provides 1 bit per photon of entropy. Another method is to count the number of photons n detected in a given time window from a low intensity light source. If the average photon interarrival time is much less than the detector dead time, n will be a random variable that follows the Poisson distribution [34]. It turns out that this technique has the same rate of entropy production as the one we focus on here: single photon time-of-arrival measurements [8,9,11]. photons per second. Photons are detected using superconducting nanowire detectors, and single photon arrivals are time-tagged by the HydraHarp 400 (PicoQuant) with a precision of 1 ps. The digitized interarrival times between consecutive photons serve as our random signal. The photon arrivals can be described as a Poisson process with constant rate λ: the probability per unit time for a photon to arrive is constant and independent of previous photon arrivals. It is well-known that the interarrival times of a constant rate Poisson process follow an IID exponential distribution of the form p(t) = λ exp [−λt] [8,9,34]. We can calculate the entropy per photon generated from these interarrival times as a function of the time-tagging resolution τ using Shannon's definition of entropy: where is the probability of the photon interarrival time occurring between time kτ and (k + 1)τ . This can be evaluated in closed form as The entropy generation rate h = λH.
Of course, real single photon detectors have a dead time. For non-paralyzable detectors, the dead time τ d does not affect the shape of the PDF; it only shifts it by τ d , as shown in Fig. 4b. This does not affect H, the entropy per photon. The dead time does, however, affect the average rate of photons that are detected: λ d = λ/(1 + λτ d ) [9]. Thus the entropy rate becomes h = λ d H. Our detector is paralyzable; however, if the photon rate is not too high, we can approximate it as non-paralyzable. Further, if the probability of more than one photon arriving in a single time bin is small (λτ << 1), we can approximate the entropy rate for photon time-of-arrival measurements as This is exactly the same entropy rate one would obtain by using Eq. 2, with min(τ −1 , 2BW ) = λ d . We estimate the entropy rate of experimentally measured photon interarrival time measurements using the Cohen-Procaccia algorithm as a function of the time-tagging resolution τ . We have performed time-of-arrival measurements for two different detected rates: λ d =2. 3 Mcps and λ d =5. 37 Mcps. In the first case the dead time is not important (λ d ≈ λ), while in the second case the dead time causes a loss of about 40% of the photons. In both cases these results give excellent agreement with Eq. 5, as shown in Fig. 4c. Furthermore, only 1 dimension is needed for the Cohen-Procaccia algorithm to converge. This suggests that the photons were indeed generated by a Poisson process with no intersample correlations.
The entropy rates obtainable from modern photon counting experiments are on the order of a few hundred Mbits/s, and physical limitations present a significant challenge for improving performance. As shown in Eq. 5, h scales logarithmically with the time-tagging resolution, suggesting that increasing the time-tagging resolution beyond the current state-of-the-art of 1ps is not an economical way to improve performance. The most efficient way to increase the entropy rate is to increase the detected photon rate λ d , which is limited by the detector dead time and is typically on the order of a few tens of millions of counts per second with current technology. It is of course possible to increase the entropy rate by combining techniques. For example, Stipcevic and Bowers were able to obtain one additional bit per photon by combining the 50:50 beam splitter method with time-of-arrival measurements [66]. However, it is clear that this does not improve the scaling.
Single photon detection techniques are attractive because of their quantum mechanical nature and conceptual simplicity. However, in light of the physical limitations described above, we find it unlikely that RNG using single photon detection techniques can become competitive with the highspeed digitization of unpredictable analog waveforms, which can produce entropy rates of hundreds of Gbits/s.

RNG from Chaotic Lasers
It has long been known that a semiconductor laser can be made chaotic by creating a time-delayed optical feedback via a reflector [67,68]. In 2008 it was demonstrated for the first time that these chaotic lasers can be used to generate random numbers, and could do so at rates an order of magnitude faster than any previous physical RNGs [37]. Since then, there has been much progress in building faster chaotic RNGs [18,[38][39][40][41][42].
Chaotic systems produce entropy by magnifying the small uncertainties in the initial conditions. The maximum rate at which entropy can be harvested from a chaotic system is called the Kolmogorov-Sinai entropy rate h KS , which is equal to the sum of the positive Lyapunov exponents [52,64]. Ref. [64] provides an in-depth review of the relationship between the Kolmogorov-Sinai entropy rate and the Shannon entropy rate. Of course, real dynamical systems also have intrinsic noise sources, which fundamentally limit the precision with which initial conditions can be measured. For the chaotic laser systems used for optical random number generation, spontaneous emission noise (which is of quantum mechanical origin) and potentially other noise sources are continuously amplified by the chaotic dynamics and contributes to the entropy production. The rate at which entropy can be harvested from a chaotic laser is limited both by the bandwidth of the detectors (Eq. 2) and h KS of the chaos. The chaotic laser system we consider here obtains an enhanced bandwidth by cascading three semiconductor lasers (NTT Electronics, KELD1C5GAAA), as described in detail in ref. [41] and shown in Fig. 5a. The first laser has time-delayed optical feedback from the reflector. The chaotic output intensity of the first laser is injected into the second laser, and the chaotic output of the second laser is then injected into the third laser. This cascading increases the standard bandwidth from 12.5 GHz at the first laser to 34 GHz at the final output. The final output intensity is detected by a 38 GHz photodetector (New Focus, 1474-A). The electrical signal from the photodetector is sampled by a high speed 8-bit oscilloscope (Tektronix DPO73304D, 33 GHz bandwidth, 100 GigaSamples/s). The RF power spectrum is shown in Fig. 5b, and a typical time series is shown in Fig. 5c. One can immediately tell from the time series in Fig. 5c that a few of the least significant bits of the signal are due to electronic noise rather than the optical signal. Figures 6a and 6b compare the results of different entropy rate estimates on the chaotic laser signal. For the Cohen-Procaccia estimate, we use d = 6 embedding dimensions. While it is unlikely that the attractor can be fully embedded in 6 dimensions, we choose d = 6 because the entropy rate estimate did not change much for d > 6. The bandwidth used in determining h 0 is the detector bandwidth BW = 33 GHz because the bandwidth of the chaos (34 GHz) is greater than the detector bandwidth. Because we do not have a theoretical prediction for a PDF for the chaotic laser system, we use the experimentally measured PDF for computing D KL in Eq. 2.
In Fig. 6a, we consider h( ) for a fixed τ . N is the number of bits per sample measured by the detector. For the NIST tests N is obtained by taking the appropriate number of most significant bits from an 8-bit oscilloscope measurement; for the Cohen-Procaccia estimate N is obtained by referencing the bin width (described in section 4) to the full 8-bit resolution of the oscilloscope (1.6mV). We also show the thresholding (N = 1 bit) limit h = 2BW bits/s as a blue dotted line. The shading above these limits denotes a region of unobtainable entropy rates for a system with the experimental PDF shown in Fig. 5c. For comparison, we show the d = 1 Cohen-Procaccia entropy rate estimate, which estimates the entropy of the experimentally measured histogram and considers no temporal correlations. This shows what the entropy rate would be if the system were actually IID when sampled at τ −1 =100 GSamples/s. Of course, the system cannot be IID when sampled at faster than 66 GSamples per second, since the detector bandwidth is 33 GHz. Unsurprisingly, both the MCV and the d = 1 estimates significantly overestimate the entropy rate. The Markov estimate does little better, still providing an entropy rate estimate that is significantly higher than the h 0 limit. The d = 6 Cohen-Procaccia estimate agrees well with the Eq. (2) limit for N ≥ 2. However, the Cohen-Procaccia estimate is unable to provide a d = 6 estimate for N > 4 due to the  data requirements (we used 1GB of data). Fig. 6a also shows the entropy rate obtained by simply turning off all optics and measuring the electronic noise at the detector. It is clear that the electronic noise in the detector contributes a significant fraction (about 20%) of the entropy at full resolution. Fig. 6b shows the entropy rate as a function of the sampling rate τ −1 for a fixed N = 3 bits. As the sampling rate is increased, the maximum entropy rate increases, then starts to plateau at a sampling rate of about 50 GSamples per second. As expected, the MCV estimate detects no correlations and continues to increase for τ −1 > 2BW; the Markov estimate does only a little better, showing a slight roll off. The d = 6 Cohen-Procaccia estimate has the most noticeable roll off, indicating that it detects temporal correlations better than the other two methods. By detecting these correlations, the Cohen-Procaccia algorithm informs us that the experiment is not purely random at high sampling rates; this can inform the choice of τ −1 in RNG design. For example, it suggests that this system should be sampled at τ −1 < 50 GSamples/s if the designer wants there to be no temporal correlations.
As noted above, there are two important limits to consider in the design of a RNG based on chaotic lasers: h KS and h 0 . One might wonder about the interplay between h KS , which describes the dynamics of the chaotic system and h SH , which limits the amount of information that can be transmitted through a finite bandwidth channel. It has long been known that filtering a chaotic system does not change the h KS [69,70]. Passing a chaotic signal through a linear filter simply makes the current output of the filter some linear combination of all the previous inputs to the filter. In principle, if one knows the linear combination that describes the filter, one can determine the unfiltered output of the chaotic system from the filtered output and thus obtain an entropy rate of h KS .
It might seem, then, that a RNG based on a chaotic system can violate the Shannon-Hartley limit described above by low-pass filtering a chaotic signal so that h SH < h KS . This is not the case. There is a minimum resolution necessary to obtain h KS , as described in the Appendix and ref. [52]. One must use a higher resolution to obtain h KS from the filtered chaotic system than is necessary to obtain h KS from the unfiltered system [71]. This increase in resolution increases N in such a way as to cancel the decrease in bandwidth BW and ensure that the Shannon-Hartley limit (Eq. 1) is not violated.
Essentially, h KS describes the rate at which the chaotic system generates entropy. This is a property of the physical entropy source and is independent of filtering or any other part of the digitization process. h SH and h 0 describe the rate at which entropy can be harvested by the measurement apparatus given the resolution and bandwidth limitations of the measurement apparatus. In short, just because a physical system is generating entropy at a rate h KS does not mean that a given measurement apparatus is able to harvest that much entropy from the system. h KS can in principle be determined from a deterministic model of the chaotic system by calculating the Lyapunov spectrum; however, a reliable estimate of h KS from experimental data is problematic due to the high dimensionality of three time-delayed chaotic lasers. We note that the largest Lyapunov exponent has been calculated numerically to be on the order of several ns −1 for two cascaded chaotic lasers [72]. We expect that h KS should be several times greater than this for our three cascaded laser system, since the additional chaotic laser should increase the complexity and h KS depends on all the Lyapunov exponents, not just the largest one. Our entropy estimates shown in Fig. 6 are consistent with this expectation.

RNG from Amplified Spontaneous Emission
The final optical RNG technique we analyze is the detection and digitization of optically filtered amplified spontaneous emission (ASE) noise from a light source such as superluminescent diode (SLD). ASE sources provide an easily measurable, high bandwidth noise signal and have been used for RNG since 2010 [14]. Because it is inherently quantum mechanical in origin, ASE cannot be  Figure 6: a) Entropy rate h( ) of the chaotic laser system for a fixed τ −1 = 100 GSamples/s. The blue dotted line is the entropy rate obtained by thresholding at the median, τ −1 . b) Entropy rate h(τ ) of the chaotic laser system for a fixed N = 3 bits. The h 0 limit (Eq. 2) is the information theoretical limit for the entropy rate given the PDF and bandwidth of the signal. Since we do not have a theoretical prediction for the PDF of the laser chaos, we estimate the PDF using the experimental histogram shown in Fig. 5 and determine D KL = −0.95 bits. h CP is the Cohen-Procaccia entropy rate estimate performed on the data, as described in the Appendix. Here we show h CP using embedding dimensions (pattern lengths) of d = 1 and d = 6. MCV=−τ −1 log 2 (p max ) is the Most Common Value entropy rate estimate from the NIST draft recommendations [51]. The Markov estimate, also from the NIST draft recommendations, takes into account first-order correlations in the data. h CP (d = 3) for the electronic noise in the detectors is also shown. described deterministically; thus, entropy can be harvested by detecting and sampling the ASE signal. There have been several different but closely related schemes to generate random numbers from ASE sources [3,[14][15][16][17][18][19][20]. Here, we discuss the system depicted in Fig. 7a. The ASE output of a SLD (DenseLight Semiconductors DL-CS5254A-FP) passes through an optical isolator, a tunable optical filter (Santec OTF-970), and an erbium-doped fiber amplifier (EDFA, PriTel FA-18-IO). This optical intensity is then attenuated before being detected by a 38 GHz photodetector (New Focus 1474-A). The electrical signal from the photodetector is amplified by a 35 GHz electronic amplifier (Picosecond pulse labs, 5882-219) then sampled by a high speed 8-bit oscilloscope (Tektronix DPO73304D, 33 GHz bandwidth, 100 GigaSamples/s).
The optical filter is used to control the bandwidth of the ASE signal. It has been shown that the optimal optical filter bandwidth for RNG is approximately equal to the photodetector bandwidth [14]. In this case, we used an nominal optical bandwidth of 0.6nm at 1550 nm center wavelength. The experimentally measured power spectrum of the ASE signal with this filter is given in Fig. 7b; the 90% signal bandwidth is 31 GHz. The PDFs and representative time series of both the full ASE signal and the electronic noise (with all optics turned off) are given in Fig. 7c. As in the case of the chaotic laser, one can tell from the time series in Fig. 7c that a few of the least significant bits of the signal are due to electronic noise rather than the optical signal. This is confirmed by the entropy analysis in Fig. 8a.
While the probability distribution of the photocurrent output by the photodetector depends on the properties of the optical filter and photodetector used, it is known that the photocurrent distribution can be reasonably approximated by the gamma distribution where a is the shape parameter (signal-to-noise ratio) and b is the scale parameter [14,73]. Fig. 7c shows that this is a reasonablly good approximation in this case, with a=2.77 and b=17.7 mV. Figures 8a and 8b compare the results of different entropy rate estimates on the ASE signal. As with the chaotic laser, N ≤ 8 is obtained by taking the appropriate number of most significant bits from an 8-bit oscilloscope measurement for the NIST tests; for the Cohen-Procaccia estimate N is obtained by referencing the bin width to the full 8-bit resolution of the oscilloscope (1.6mV). The upper limit h 0 is given by Eq. 2 as a black dashed line and the thresholding (N = 1 bit) limit h = 2BW bits/s as a blue dotted line. Here, BW = 31 GHz since the 90% signal bandwidth is the smallest relevant bandwidth. We use Eq. 6 with best-fit parameters a=2.77 and b=17.7 mV to determine D KL and h 0 . The shading above these limits denotes a region of unobtainable entropy rates for a system with the PDF given by Eq. 6. In Fig. 8a, the d = 1 Cohen-Procaccia estimate shows what the entropy rate would be if the system were IID when sampled at τ −1 = 100 GSamples/s. Of course, the system cannot be IID when sampled at faster than 62 GSamples per second, since the signal bandwidth is 31 GHz. Thus, it is expected that the d = 1 Cohen-Procaccia estimate would lie in the shaded region of unobtainable entropy rates.
For this data, we use the Cohen-Procaccia entropy rate estimate with d = 6 dimensions because the entropy rate estimate did not change much for d > 6. The d = 6 Cohen-Procaccia estimate closely follows the h 0 limit, while the other entropy estimates show a significantly larger slope, resulting in large overestimates of the entropy rate. The d = 6 Cohen-Procaccia lies slightly above the h 0 limit; this is likely due to the mismatch between the theoretical PDF in Eq. 6 and the actual experimental PDF. The d = 6 Cohen-Procaccia estimate is the only one of the 4 entropy estimates shown that seems to follow the h 0 limit; however, the Cohen-Procaccia estimate is unable to provide a d = 6 estimate for N > 4 due to the data requirements. Fig. 8a also shows the entropy rate obtained by simply turning off all optics and measuring the electronic noise at the detector. As for the case of the chaotic laser, it is clear that the electronic measurement noise contributes a significant fraction (about 20%) of the entropy at full resolution.   The h 0 limit (Eq. 2) is the information theoretical limit for the entropy rate given the PDF and bandwidth of the signal (D KL = −1.94 bits for the best-fit PDF from Eq. 6 and shown in Fig.  7). h CP is the Cohen-Procaccia entropy rate estimate performed on the data, as described in the Appendix. Here we show h CP using embedding dimensions (pattern lengths) of d = 1 and d = 6. MCV=−τ −1 log 2 (p max ) is the Most Common Value entropy rate estimate from the NIST draft recommendations [51]. The Markov estimate, also from the NIST draft recommendations, takes into account first-order correlations in the data. h CP (d = 6) for the electronic noise in the detectors is also shown. Fig. 8b shows the entropy rate as a function of the sampling rate τ −1 for a fixed N = 3 bits. Again, the dashed black line denotes the upper limit provided by Eq. 2. For lower sampling rates, the Cohen-Procaccia estimate is slightly above the Eq. 2 limit; this is due to the mismatch between the theoretical and experimental PDFs shown in Fig. 7c. As the sampling rate is increased, the maximum entropy rate increases, then plateaus as the sampling rate approaches twice the signal bandwidth (62 GSamples/s). As expected, the MCV estimate detects no correlations and continues to increase for τ −1 > 2BW; The Markov and Cohen-Procaccia estimates do quite a bit better, showing a roll off with increasing sampling rate. This indicates that there are temporal correlations in the data. By detecting these correlations, the entropy estimates inform us that the experiment is not behaving purely stochastically for sampling rates that are too high. While the Markov and Cohen-Procaccia estimates perform similarly for N = 3, it is clear from Fig. 8a that the Markov estimate does not give valid results for N ≥ 7.

SLD
Since ASE sources can have large bandwidth, the main factor that limits the entropy rate for ASE sources is the bandwidth of the measurement apparatus. Thus, as the bandwidths of photodetectors and digitizers improve, we expect the entropy rate of ASE sources to similarly increase. Additionally, a single ASE source can be used to generate multiple independent bitstreams by taking different slices of the optical spectrum, as done in ref. [15].

Conclusions
Physical RNGs are becoming increasingly important in digital communications and security, as evidenced by their widespread commercial availability, both embedded in CPUs [4] and as external devices [1-3]. Optical and photonic systems are leading the way as physical sources of randomness due to their high speed, access to the inherent randomness in quantum mechanical phenomena, and resistance to external interference from electric and magnetic fields. In the last decade, optical RNGs have elevated the state-of-the-art from a few hundred Mbits/s to one Tbit/s. Motivated by this race for the highest random bit rates, researchers have often been insufficiently concerned about where the entropy is coming from. Instead, the standard practice is to sufficiently post-process some unpredictable signal so that the final output bit sequence can pass statistical tests designed for PRNGs. As we discussed above, the fastest physical entropy sources involve the digitization of high-bandwidth, unpredictable analog waveforms. The digitization process naturally forces one to think about what the measurement resolution and sampling rate τ −1 should be. As we have shown, the choices of , τ , and post-processing technique can determine which physical process or processes contribute to the extracted entropy rate.
The new NIST draft recommendations for the evaluation of physical RNGs [51] come a long way; they suggest that one estimate the entropy using minimally post-processed data and require some physical justification of where the entropy is coming from. However, the new standards do not recognize dynamical entropy sources or the importance of the digitization process ( and τ ).
We recommend that physical RNG evaluation techniques evolve away from statistical tests designed for PRNGs toward entropy estimates that provide insight into the physical origins and limitations of the optical entropy source. In order to acheive this, we recommend that RNG designers perform an ( , τ ) entropy analysis on the raw digitized data (as in Fig. 1b) using a variety of entropy estimates, including the the Cohen-Procaccia estimate and tests from the NIST entropy estimation suite. The h( , τ ) analysis, in conjunction with considering simple physical and information theoretical limits of entropy generation, provides more than a simple pass/fail validation of a RNG; it provides relevant information about an entropy source such as how finely and frequently to sample the source and what types of post-processing and conditioning should be used to extract entropy from the desired source.
As an example, we have performed this analysis for three state-of-the-art optical entropy sources. We found that the digitization of unpredictable, high-bandwidth analog signals generates significantly higher entropy rates than does single photon detection. Chaotic lasers and ASE signals can produce similar entropy rates (on the order of hundreds of Gbits per second); however, the simplicity of the ASE setup is attractive as is the ability for one SLD to generate multiple independent bitstreams, as done in ref. [15]. We also found that post-processing methods that use least-significant bit extraction might be taking their entropy from electronic noise in the detector or digitizer rather than from the desired optical entropy source.

A look to the future
One of the most important areas for future research in random number generation is the one with which this Perspective is most concerned: evaluation standards and practices. It is the opinion of the authors that the standards for physical RNGs should involve entropy estimates of the raw physical data and that the Cohen-Procaccia entropy rate estimate is one useful entropy measure; however, there is no single perfect entropy rate estimate. The upcoming release of the official NIST recommendations for physical entropy sources will provide some new entropy estimation techniques.
These will need to be tested on all types of optical entropy sources. The statistical analysis of data from physical entropy sources is a highly challenging but important problem in the field of RNG. We hope that this Perspective as well as the upcoming release of the NIST recommendations will lead the optical RNG community to embrace entropy estimation from the raw physical data, and to continue to develop new and better entropy estimates.
Another crucial issue facing the optical RNG community is to bridge the gap between the ultrafast RNG rates possible in the lab (∼1 Tb/s) and the significantly slower speed of commercially available optical RNGs (∼1 Gb/s). The ultrafast rates in laboratory experiments have been obtained by taking one-time measurements with an oscilloscope; they cannot be sustained for more than tiny fractions of a second. Further, the postprocessing necessary to extract the entropy is often done offline. One critical path of future research is developing real-time implementations of the post-processing necessary for optical RNGs. There has been some work in this area [45,48,74,75]; however, as of now real-time implementations of optical RNGs have a long way to go to read the Tb/s rates of the one-time oscilloscope measurements. Once post-processed, there is the problem of transferring the data to the memory of the user in real time. High-speed entropy extraction and data transfer are two major practical problems that the field of optical random number generation will have to address in the coming years.
Additionally, in order to be practically useful, the size and cost of the laboratory RNGs must be reduced. One promising way to do this is by implementing the optical RNG on photonic integrated circuits [45]. Low-cost photonic integrated circuits are currently being developed for optical computing and information transfer within traditional computing; we anticipate that optical RNGs will begin to be developed on chip as well. These circuits provide the additional benefit that they are robust against temperature fluctuations and air turbulence.
We also anticipate the development of optical RNGs with special properties suited for applicationspecific purposes. One recent example of this is the laser phase noise-based RNG used in the recent loophole-free Bell tests [76][77][78]. Each of these tests relied on the real-time optical RNG described in ref. [75] to randomly and independently choose the measurement bases such that the choice of basis is space-like separated. This allowed the researchers to close the locality loophole.
Over the last decade, much of the optical RNG research has focused on breaking bit rate records that pass the statistical test suites. Once the optical RNG community shifts focus from record breaking to entropy analysis and physical origins of randomness, we will also see an increasing focus on decreasing the size and power constraints and increasing the robustness to external (potentially unsafe) noise sources. When all of these considerations are taken into account, optics and photonics will emerge as the most promising technology for physical random number generation.

A comment about the relationship between PRNGs and deterministic chaos
We state above that PRNGs cannot increase the entropy rate of their input because they are deterministic algorithms. Given the set of equations and the initial conditions, one can calculate the full future output of the system. However, it is well-established that deterministic chaotic systems do have an associated entropy rate, h KS [52,64,79]. One might might wonder why a chaotic system can generate entropy while a PRNG cannot.
PRNGs require a finite-length seed (initial condition) as input, which contains all the entropy [54]. The PRNG then performs deterministic computations on the seed in order to generate pseudorandom numbers as output. These numbers appear random: they are uniformly distributed and pass all statistical tests of randomness. The numbers are called pseudo-random because for a given seed, the PRNG will always produce the exact same output sequence. Therefore, if an attacker obtains the seed, the future output of the PRNG is completely predictable.
Due to the finite precision of computers, a PRNG with a given seed will repeat after a finite (often very large) number of iterations [80]; that is, once the entropy from the seed is used up, no new entropy can be obtained from the PRNG. To resolve this, PRNGs are often re-seeded somewhat frequently with additional entropy. Essentially, then, the PRNG serves to reveal the entropy from the seed at a given rate and with some desired properties (e.g. uniformly distributed output); however, the entropy itself must be provided from some other source (often physical entropy sources). Due to finite precision constraints, computer simulation of a deterministic chaotic system is essentially a PRNG and will encounter these same restrictions [80].
We now consider mathematical chaotic systems that are described by deterministic equations with infinite precision. As in the case of PRNGs on a classical computer with finite precision, the entropy in an infinite-precision chaotic system is stored in the initial condition. Unlike in a PRNG, in an infinite-precision chaotic system, an infinite amount of information (or entropy) is stored in the infinitely precise initial condition. Imagine that an observer of this system cannot measure the initial condition to more than a handful of most significant bits. The chaotic system, due to its inherent sensitivity to initial conditions, amplifies the bits of lower significance so that they become measurable [81,82]. The average rate at which this information about the precise value of the initial condition is revealed by the chaotic system can be quantified by the Kolmogorov-Sinai entropy rate, which is equal to the sum of the positive Lyapunov exponents [52,64].
Of course, infinite-precision chaotic systems do not exist in the real world; all physical systems are at some level granular, quantized, and susceptible to sources of noise and uncertainty, which together prevent the physical chaotic system from having infinitely precise initial conditions. This uncertainty continuously scrambles the least significant bits of the state of the system, continuously re-seeding the chaotic system. The noise is amplified by the chaos [35,36] and contributes to the entropy production. In the case of laser chaos, the intrinsic noise has been considered to be quantum mechanical in origin and due to spontaneous emission in the laser [83]." There may also be classical sources of noise. These may be intrinsic, in which case they will be amplified by the chaos, or external (e.g. measurement noise), in which case they may or may not contribute to the measured entropy rate, depending on the and τ and post-processing used in the physical RNG, as discussed above.
In summary, for both PRNGs and ideal chaotic systems, the entropy comes from the initial conditions; PRNGs and chaotic systems are similar in that they amplify the bits of low significance of their initial conditions. The fundamental difference is that the amount of entropy in the initial conditions of a PRNG is limited by the finite precision of a computer, while the initial conditions of an ideal chaotic system has infinite precision. Because of the finite precision, PRNGs must eventually repeat and therefore are periodic systems with long periods; however, chaotic systems never repeat. Once a PRNG repeats, it has used up all the entropy in its seed and the output entropy rate is 0; a chaotic system reveals the infinitely many low-significance digits of the initial conditions at an average rate of h KS forever. Further, because of finite measurement precision and intrinsic noise, chaotic systems are truly random; Gaspard and Wang show that a chaotic system and a stochastic Markov chain with the same h KS have the same degree of dynamical randomness [52].
The h 0 limit In Eq. 2 we provide the information theoretical limit for the maximum entropy that can be harvested with a given probability distribution p(x) with a signal and measurement bandwidth of BW . Here we derive this from a previous result and explain how to calculate it in practice.
Gaspard and Wang [52] give the upper limit of -entropy per sample as where p(x) is the PDF of the signal from which entropy is being harvested. One can either use a theoretical PDF or estimate the PDF from an experimentally measured histogram for p(x). A theoretical PDF is preferable, since one can calculate the integral exactly. We also know that the sampling rate is limited by information theory to the Nyquist rate f max = 2BW . Here, BW is the limiting bandwidth, which is the minimum of all relevant bandwidths (signal bandwidth, detector bandwidth, digitizer bandwidth, etc.). Thus, as → 0 In practice, it is often easiest to use Eq. 8 to determine the h 0 limit. However, the limit can be understood intuitively by writing it in terms of N and the Kullback-Leibler divergence, as we now show. The number of bits per sample N = log 2 ( b−a ), where a and b are the end points of the measurement range of the digitizer. If we define U = 1 b−a , we can write N = − log 2 (U ) and Now define u(x)=U for a ≤ x ≤ b and u(x) = 0 for all other x. p(x) is also only non-zero for a ≤ x ≤ b. Since p(x)dx=1, we can write log 2 U = p(x) log 2 U dx. We can then combine the integrals: The Kullback-Leibler divergence is defined as D KL (p(x)||u(x)) ≡ − dx p(x) log 2 ( p(x) u(x) ), giving us Eq. 2.

Cohen-Procaccia entropy
In this section, we present the Cohen-Procaccia algorithm as a method to estimate h( , τ ) [65]. The Cohen-Procaccia estimate is especially useful because it can be used to directly compare stochastic and chaotic sources [52]. Further, it does not unnecessarily penalize entropy sources with PDFs that are approximately normal like some of the NIST draft tests do [63].
The Shannon entropy, or average amount of information contained per sample, of a random variable X is given by where the summation is taken over all possible values of x [61]. For a joint probability distribution, this definition of entropy extends naturally to One definition of entropy rate is the average amount of new information obtained by measuring the current sample given the history of previous samples: where τ −1 is the rate at which the distribution is sampled. In Eq. 13, one considers the rate at which the entropy of the set of patterns of length d symbols changes with d.
To calculate the entropy of a dynamical system, the patterns of length d that are used are obtained by a d-dimensional time-delay embedding [79] of the data with delay τ . The time-delay vectors can be considered samples from a d-dimensional probability distribution in phase space. h( , τ ) can then be calculated according to Eq. 13.
For an IID random process, each sample will be completely independent of all previous samples, so Eq. 13 becomes h = τ −1 H(X d ). However, when there are temporal correlations of length dτ or less, the d-dimensional pattern entropy rate will be reduced.
In principle, one can estimate the Shannon entropy directly. First estimate the d-dimensional joint probability distribution by making a histogram with d-dimensional boxes of width and use this in Eq. 13 to estimate the entropy rate. This approach requires a large amount of data and computing resources for systems with large embedding dimension.
Cohen and Procaccia [65] developed a more efficient way to estimate the entropy rate in order to estimate the Kolmogorov-Sinai entropy from experimental data of chaotic systems. For additional information about the close relationship between the Kolmogorov-Sinai entropy and the Shannon entropy, see ref. [64]. Gaspard and Wang [52] later showed that the Cohen-Procaccia algorithm can also be accurately estimate the entropy rate of stochastic systems. We now briefly review the Cohen-Procaccia algorithm.
First, one makes the previously described d-dimensional time-delay embedding. Then one randomly selects M of these points as reference points. Typically M is much smaller than the length of the time series. For each reference point n, one computes f n ( ), the fraction of other points within a d-dimensional box of width (that is, within a distance /2 of the reference point). Here distance is given by the square metric dist[x, y]= max{|x 1 − y 1 |, |x 2 − y 2 |, ..., |x d − y d |}, where x and y are two d-dimensional vectors. The d-dimensional pattern entropy estimate is then given by log 2 (f n ( )).
The Cohen-Procaccia entropy rate estimate is then obtained by using Eq. 14 in Eq. 13 where we have explicitly added in the dependence of h and H on the box width and the embedding time-delay τ . The only differences between the Cohen-Procaccia estimate and a direct calculation of the Shannon entropy are that the Cohen-Procaccia estimate uses M reference points, and that the histogram bins are centered on the reference points instead of being a fixed rectangular array. The Cohen-Procaccia calculation still requires a large amount of data, but is much more computationally efficient than a direct calculation of the Shannon entropy. We note that placing the centers of the bins on the reference points results in poor entropy rate estimates for large (small N ), but accurate estimates for small . Gaspard and Wang [52] used the Cohen-Procaccia estimate to compare the entropy generation rates of Gaussian noise and the logistic map x n+1 = rx n (1 − x n ) with r=4. We have replicated these results and present them in Fig. 9a and b. The Cohen-Procaccia estimate can distinguish a stochastic process from a chaotic one by revealing the dependence of the entropy rate on . For a stochastic process, h( ) should scale with log( 1 ), while h( ) should converge to h KS as → 0 for a chaotic process. This behavior is captured by the Cohen-Procaccia algorithm for the logistic map in Figs. 9a and 9b. In Fig. 9b, for low resolution (large ), no entropy can be harvested from the system because the resolution is too coarse. As the resolution increases, the amount of entropy that can be extracted from the system also increases, until the full attractor is resolved. At this point, h CP ( ) plateaus at h KS , even as → 0.
Gaspard and Wang also considered a noisy logistic map, in which the time series was obtained by iterating the logistic map with r=4 then adding Gaussian noise of standard deviation 0.001 to the output. This result is shown in Fig. 9c. For low resolution (large ), the entropy increases as the resolution increases. At intermediate resolution, the chaotic attractor can be fully resolved, but the noise cannot, so h( ) plateaus at h KS . At high resolution (small ), the noise is resolved and h( ) scales as log( 1 ). It is clear from the figure not only that the Cohen-Procaccia estimate can accurately predict the rate of entropy production of both stochastic and chaotic systems, but also that the scaling of the entropy rate with can provide some information about where the entropy is coming from at a given measurement resolution.
As we mentioned previously, an ( , τ ) entropy rate analysis can be performed with any entropy estimation method. We use the Cohen-Procaccia estimate because it is known to treat both chaotic and stochastic sources fairly [52,53] and it can recognize higher order correlations than metrics such as the MCV and Markov estimates. While in principle, the Cohen-Procaccia algorithm can identify correlations of any time scale, this requires an impractically large amount of data if the time scale of the slowest correlations is much slower than the fastest time scale. We do not consider this a significant problem, however, because good physical RNG design involves stabilization techniques to remove slow fluctuations due to external factors, such as power supply or temperature fluctuations.
However, there are some disadvantages to the Cohen-Procaccia entropy rate estimate. In general, the Cohen-Procaccia algorithm does require significantly more data than the NIST entropy estimation suite does, and the amount of data needed increases with the dimension of the entropy estimate. It does, however, pick up higher order correlations than do the NIST entropy estimation techniques. As a result, for entropy analyses of systems that require a high dimension for the Cohen-Procaccia algorithm to converge, it may be difficult to obtain an accurate estimate of the entropy rate. Still, the Cohen-Procaccia algorithm has value: for example, if the entropy rate estimate varies with dimension, then it is clear that the system is not behaving completely randomly and that the entropy source should probably be sampled less frequently. Once the Cohen-Procaccia entropy rate estimate does converge, then one has both an entropy rate estimate and some assurance that they are sampling at an appropriate rate.