Electronic device capable of visualizing random number random degree and method thereof

By designing an electronic device, the processor receives the bit sequence and draws the strings in the display image to display the disorder of the bit sequence, solving the problem of difficult to visually present the randomness of the random number in the prior art, and achieving the effect of simplified computing and intuitive display.

CN119597240APending Publication Date: 2025-03-11PUFSECURITY CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410958067.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2024-05-16
Filing Date
2024-07-17
Publication Date
2025-03-11

AI Technical Summary

Technical Problem

The prior art is difficult to simplify the calculation of evaluating randomness of chaotic numbers in a visual way, and cannot effectively present the randomness of chaotic numbers.

Method used

An electronic device is designed to receive a bit sequence through a processor, divide it into binary numbers, and determine its corresponding point position on the circle based on the numerical value of the binary number. The string is then drawn in the display image, and the brightness of the string is correlated with the number of times it is drawn, forming a brightness distribution showing the chaos of the bit sequence.

Benefits of technology

While simplifying the operation, it realizes the randomness of the random numbers visually presents, allowing users to intuitively observe and compare the chaos of different bit sequences.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119597240A_ABST
    Figure CN119597240A_ABST
Patent Text Reader

Abstract

An electronic device includes a processor, a memory, and at least one program. The at least one program is stored in the memory and executed by the processor. The at least one program includes instructions for receiving a bit sequence, dividing the bit sequence into binary numbers having the same number of bits, determining a corresponding point of each binary number on a circumference of a circle according to a central angle positively correlated with a value of each binary number in each binary number, a string connecting corresponding points of two continuous binary numbers in a circle is drawn in the display image, the display image is displayed to present the brightness of each string related to the number of times of drawing the string, and the brightness distribution formed by the brightness of each string shows the disorder degree of the first bit sequence.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to an electronic device, and more particularly to an electronic device capable of visualizing the randomness of random numbers. Background Art

[0002] As the computing power of electronic devices continues to increase, information security has become an increasingly important issue. Random number generators are one of the commonly used tools in the field of information security. Ideally, random number generators should be able to generate unpredictable random strings that can be used to generate encryption key seeds to enhance the security of data transmission. However, random numbers generated by computers usually still show certain patterns, making it difficult to provide sufficient security.

[0003] To ensure the randomness of random numbers, researchers have developed true random number generators (TRNGs) that can use physical properties to generate random numbers. For example, for an inverter composed of semiconductor transistors, the speed at which its voltage changes with the input voltage is unpredictable, and this unpredictability becomes more obvious when the inverters are connected to form a ring oscillator. Therefore, random numbers can be generated by periodically sampling the output signal of the ring oscillator.

[0004] After generating random numbers, it is also important to further confirm the randomness of the random numbers, that is, the quality of the random numbers. In order to evaluate the randomness or randomness of random strings, the National Institute of Standards and Technology (NIST) defines a variety of methods in the document SP800-90B, such as collision estimation, t-tuple estimation, and longest repeated substring estimation, to estimate the randomness of random numbers. However, these evaluation methods may require a lot of calculations and cannot be presented to users in a visual form. Therefore, how to simplify the calculations while presenting the randomness of random numbers in a visual way has become a challenge in this field. Summary of the invention

[0005] One aspect of the present disclosure provides an electronic device. The electronic device includes a processor, a memory, and at least one program. The at least one program is stored in the memory and executed by the processor. The at least one program includes instructions for: receiving a bit sequence, dividing the bit sequence into binary numbers with the same number of bits, and determining the corresponding point of each of the binary numbers on the circumference of a circle according to the center angle of the circle that is positively correlated with the value of each of the binary numbers, wherein the corresponding points of the binary numbers with different values ​​are located at different positions. The at least one program further includes instructions for: drawing a plurality of chords within a circle in a display image, wherein each of the chords connects the corresponding points of two consecutive binary numbers in the binary numbers, and displaying a first display image to present the brightness of each of the chords, wherein the brightness of each of the chords is related to the number of times the chord is drawn, and the brightness distribution formed by the brightness of each of the chords represents the disorder of the bit sequence.

[0006] Another aspect of the present disclosure provides an electronic device. The electronic device includes a data processing unit and a display device. The data processing unit receives a bit sequence from a memory, divides the bit sequence into a plurality of binary numbers having the same number of bits, and determines the corresponding point of each of the binary numbers on the circumference of a circle according to the center angle of the circle positively correlated with the numerical value of each of the binary numbers, wherein the corresponding points of the binary numbers with different numerical values ​​are located at different positions. The data processing unit further draws a plurality of chords within the circle in the display image, wherein each of the chords connects the corresponding points of two consecutive binary numbers in the binary numbers, and displays a first display image to present the brightness of each of the chords, wherein the brightness of each chord is related to the number of times the chord is drawn, and the brightness distribution formed by the brightness of each of the chords represents the randomness of the bit sequence.

[0007] Another aspect of the present disclosure provides a method for visualizing the disorder of a bit sequence. The method includes receiving a bit sequence, dividing the bit sequence into a plurality of binary numbers having the same number of bits, and determining a corresponding point of each of the binary numbers on the circumference of a circle according to a center angle positively correlated with the value of each of the binary numbers, wherein the corresponding points of the binary numbers with different values ​​are located at different positions. The method further includes drawing a plurality of chords within a circle in a display image, wherein each of the chords connects the corresponding points of two consecutive binary numbers in the binary numbers, and displaying a first display image to present the brightness of each of the chords, wherein the brightness of each chord is related to the number of times the chord is drawn, and the brightness distribution formed by the brightness of each of the chords represents the disorder of the bit sequence.

[0008] Simple diagram description

[0009] A more complete understanding of the present disclosure may be obtained by referring to the embodiments and claims in conjunction with the accompanying drawings, in which like reference numerals represent like elements throughout the various views.

[0010] Figure 1 is a schematic diagram of an electronic device according to an embodiment of the present disclosure.

[0011] Figure 2 is a flow chart of a method for visualizing the randomness of a bit sequence according to an embodiment of the present disclosure.

[0012] Figure 3 It is a diagram showing the division of a bit sequence into binary numbers.

[0013] Figure 4 It is a diagram of the corresponding points of binary numbers on the circumference of a circle.

[0014] Figure 5 It is a schematic diagram of a display image according to an embodiment of the present disclosure.

[0015] Figure 6 yes Figure 1 Schematic diagram of another display image generated by an electronic device

[0016] Figure 7 yes Figure 1 Schematic diagram of another display image generated by an electronic device

[0017] Figure 8 is a schematic diagram of an electronic device according to another embodiment of the present disclosure. Implementation

[0019] Figure 1 1 is a schematic diagram of an electronic device 100 according to an embodiment of the present disclosure. The electronic device 100 includes a processor 110, a memory 120, and at least one program 130. In the present embodiment, the program 130 may be stored in the memory 120, and the processor 110 may execute the program 130 to receive the bit sequence SB1 and generate a display image IMG1 according to the bit sequence SB1. In the present embodiment, the disorder (i.e., the degree of randomness) of the bit sequence SB1 may be visually presented through the display image IMG1, and the electronic device 100 may further include a display device 140 for displaying the display image IMG1.

[0020] In this embodiment, the processor 110 may divide the bit sequence SB1 into a plurality of binary numbers having the same number of bits. Then, the processor 110 may further determine the position of the corresponding point of each binary number on the circumference of a circle according to its value, so that the corresponding points of the binary numbers with different values ​​may be located at different positions and evenly distributed on the circumference. Finally, the processor 110 may draw chords within the circle in the display image IMG1, wherein each chord may connect the corresponding points of two adjacent binary numbers in the bit sequence SB1. In this case, each chord may be regarded as a change process from one binary number to a subsequent binary number. In this embodiment, the brightness of each chord may be further determined according to the number of times each chord is drawn. For example, a chord drawn more times may have a higher brightness than a chord drawn less times.

[0021] Therefore, by observing the distribution of the strings and the brightness of the strings in the displayed image IMG1, the distribution of the binary numbers and the regularity in the binary number change process can be observed. In this case, if some strings are obviously brighter than other strings, it means that there may be some regularity in the bit sequence SB1, and therefore it can be expected that the bit sequence SB1 will have a lower disorder. On the contrary, if the distribution of the strings is uniform and no string brightness is particularly prominent, it means that there is no obvious regularity in the bit sequence SB1, and therefore it can be expected that the bit sequence SB1 will have a higher disorder. In other words, the disorder of the bit sequence SB1 can be visually observed by displaying the image IMG1.

[0022] Figure 2 1 is a flow chart of a method M1 for visualizing the randomness of a bit sequence SB1 according to an embodiment of the present disclosure. In some embodiments, the electronic device 100 may be used to implement the method M1. The method M1 includes steps S110 to S150. In some embodiments, the steps S110 to S150 may be implemented by program codes in the program 130, and the processor 110 may execute the program 130 to execute the method M1. The processor 110 may be a general-purpose processor, such as a central processing unit (CPU), a microcontroller, a digital signal processor (DSP), a graphics processing unit (GPU), or other suitable processing units capable of executing the program 130.

[0023] In step S110, the processor 110 may execute the program 130 to receive the bit sequence SB1. In some embodiments, the bit sequence SB1 may be generated by a true random number generator (TRNG) 170, and the electronic device 100 may further include a TRNG interface 150. In some embodiments, the TRNG interface 150 and the TRNG 170 may have a dedicated communication port or a general specification communication port, such as a serial parallel interface (SPI) port, so that the TRNG interface 150 can receive the bit sequence SB1 from the TRNG 170. In some embodiments, the TRNG 170 may generate the bit sequence SB1 through an unpredictable physical process. For example, the TRNG 170 may include a ring oscillator formed by connecting a plurality of inverters. Since the jitter caused by each inverter is unpredictable, the switching timing of the ring oscillator is also unpredictable. Therefore, the TRNG 170 may generate the bit sequence SB1 by periodically sampling the output signal of the ring oscillator. However, the present disclosure is not limited thereto. In some other embodiments, the TRNG 170 may also generate a random bit sequence (ie, the bit sequence SB1 ) by utilizing other unpredictable physical phenomena, such as thermal noise, photoelectric effect, and quantum phenomena.

[0024] In addition, the electronic device 100 may further include another memory 160, and the TRNG interface 150 may include a communication port for accessing the memory 160, so that the TRNG interface 150 can store the received bit sequence SB1 in the memory 160 in sequence. That is, the TRNG interface 150 can be connected as an interface between the external TRNG 170 and the memory 160. In this case, when executing step S110, the processor 110 can obtain the bit sequence SB1 from the memory 160 through a general conventional memory access mode. In some embodiments, the processor 110, the TRNG interface 150, the memory 120 and the memory 160 can be coupled through a system bus. However, the present embodiment is not limited to this. In some embodiments, the memories 120 and 160 can be two separate and different memories, or the memories 120 and 160 can also be memory spaces in different segments of the same memory.

[0025] In some embodiments, the processor 110 may also have an SPI or other interface to communicate directly with the TRNG 170 without the TRNG interface 150. Furthermore, in some embodiments, the TRNG 170 may be disposed within the electronic device 100. However, in some embodiments, the TRNG 170 may be disposed outside the electronic device 100, and the electronic device 100 may be switched to connect to other TRNGs, such as TRNGs 171 and 172, so that the randomness of the bit sequences generated by the TRNGs 171 and 172 can be visualized.

[0026] Furthermore, in some embodiments, the memory 120 may be a non-volatile memory, so that the program 130 can be stably saved when the electronic device 100 is turned off. For example, the memory 120 may be a flash memory. Furthermore, the memory 160 may be a random access memory (RAM), such as a dynamic random access memory (DRAM) or a static random access memory (SRAM).

[0027] In step S120 , the processor 110 may divide the bit sequence SB1 into a plurality of binary numbers BN_1 to BN_X, and each of the binary numbers BN_1 to BN_X has M bits, where X and M are integers greater than 1. In this case, the value of each binary number BN_1 to BN_X may be from 0 to 2M-1.

[0028] Figure 3 is a schematic diagram showing that the bit sequence SB1 is divided into binary numbers BN_1 to BN_X. Figure 3 In the illustrated embodiment, M is equal to 3, and the bit sequence SB1 can be divided into binary numbers BN_1 to BN_X in sequence. For example, the first three bits in the bit sequence SB1 can be grouped into a first binary number BN_1 having a value of 0 (i.e., "000"), the next three bits in the bit sequence SB1 can be grouped into a second binary number BN_2 having a value of 3 (i.e., "011"), and so on. In this case, the value of each of the binary numbers BN_1 to BN_X can be 0 (i.e., "000"), 1 (i.e., "001"), 2 (i.e., "010"), 3 (i.e., "011"), 4 (i.e., "100"), 5 (i.e., "101"), 6 (i.e., "110"), or 7 (i.e., "111").

[0029] Next, in order to visualize the patterns existing in the binary numbers BN_1 to BN_X, in step S130, the processor 110 may determine the corresponding point of each binary number BN_1 to BN_X on the circumference of the circle according to the central angle that is positively correlated with the numerical value of each binary number BN_1 to BN_X, so that the corresponding points of binary numbers with different numerical values ​​may be evenly distributed at different positions on the circumference of the circle.

[0030] Figure 4 is a schematic diagram of the corresponding points of binary numbers BN_1 to BN_3 on the circumference of circle C1. Figure 4 As shown, the corresponding points of the binary numbers with values ​​from 0 to 7 can be located at positions P0, P1, P2, P3, P4, P5, P6 and P7 respectively, and the positions P0, P1, P2, P3, P4, P5, P6, and P7 are evenly distributed on the circumference of the circle C1. In this embodiment, if the value of the binary number BN_1 is 0 and the value of the binary number BN_2 is k, where k is an integer from 0 to 7, the central angle formed by the radius R1 connected to the corresponding point of the binary number BN_1 and the radius R2 connected to the corresponding point of the binary number BN_2 is For example, if k is equal to 3 and M is equal to 3, the corresponding point of the binary number BN_2 will be located at point P3, and the central angle between the radii R1 and R2 will be 135° (ie, Similarly, if the value of the binary number BN_3 is 6, the corresponding point of the binary number BN_3 will be located at point P6, and the central angle formed by the radius R1 and the radius R3 connected to the corresponding point of the binary number BN_3 will be 270° (i.e., ).

[0031] After determining the positions of the corresponding points of the binary numbers BN_1 to BN_X, in step S140 , the processor 110 may further draw a plurality of chords within the circle C1 of the display image IMG1 , wherein each chord may connect the corresponding points of two consecutive binary numbers. Figure 5 is a schematic diagram of a display image IMG1 according to an embodiment of the present disclosure. As shown in the display image IMG1, the processor 110 can draw a chord D1 by connecting the corresponding points of the binary number BN_1 and the binary number BN_2, draw a chord D2 by connecting the corresponding points of the binary number BN_2 and the binary number BN_3, and so on. In this case, each chord can be regarded as a change process from one binary number to the next binary number.

[0032] In some cases, certain changes may occur more often than other changes, which means that there may be a predictable pattern in the bit sequence SB1, and therefore, the randomness of the bit sequence SB1 may be relatively low. For example, due to the characteristics of TRNG 170, the sequence "000" may be usually followed by the sequence "011", and the sequence "011" may be usually followed by the sequence "110". In this case, the chords D1 and D2 may be drawn more times than other chords. In this embodiment, in order to visually present this pattern, the processor 110 may further determine the brightness of each chord based on the number of times each chord is drawn. Therefore, in step S150, the display image IMG1 may be displayed by the display device 140 to present the brightness of each chord related to the number of times the chord is drawn. For example, if Figure 5 As shown, a string that is drawn more times may have a lower brightness (ie, darker). That is, by determining the brightness of the string, the frequency of the string being drawn can be visually presented, and the brightness distribution formed by the brightness of the string can show the randomness of the first bit sequence SB1.

[0033] For example, since chord D1 is drawn more times than chord D3, the brightness of chord D1 can be set to be lower than the brightness of chord D3. In some embodiments, when the circle itself is presented with a higher brightness, the brightness of the chord can be negatively correlated with the number of times the chord is drawn. However, the present disclosure is not limited to this. Alternatively, when the circle itself is presented with a lower brightness, the brightness of the chord can be positively correlated with the number of times the chord is drawn. That is, a chord that is drawn more times can be set to have a higher brightness. In some embodiments, the brightness of the chord can be proportional to the number of times the chord is drawn. However, the present disclosure is not limited to this. In addition, in some embodiments, the number of times the chord is drawn can be distinguished by brightness instead of thickness. For example, a chord that is drawn more times may be thicker than a chord that is drawn less times.

[0034] In this embodiment, the processor 110 may be a CPU and the electronic device 100 may further include a processor 180 as a GPU. In this case, the processor 110 may cause the GPU 180 to draw a chord on a frame canvas to generate a display image IMG1 and update a frame buffer according to the display image IMG1, so that the display device 140 may display the display image IMG1 accordingly in step S150. In this embodiment, the display device 140 may include a liquid crystal display (LCD) panel, an organic light-emitting diode (OLED) panel, a plasma display panel (PDP), a projector, or other types of display devices capable of displaying images of different brightness.

[0035] Furthermore, in some embodiments, the processor 110 may request the processor 180 to draw a chord in an image file each time in step S140, and may request the processor 180 to overlay all the image files in the same frame of canvas. In this case, the brightness of the chords will gradually accumulate during the overlay process, thereby correspondingly determining the brightness of each chord in the display image IMG1 and displaying it in step S150. However, the present disclosure is not limited to this. In some embodiments, the processor 180 may also be omitted, and the processor 110 may accumulate the number of times each chord is drawn and set the brightness of each chord accordingly.

[0036] In addition, in order to effectively determine the degree of randomness of the random bit sequence generated by TRNG 170, it may be necessary to observe a relatively long bit sequence, because some repetitive patterns may only appear after a relatively long time period. Therefore, in some embodiments, TRNG 170 can continue to generate random bits, so that the bit sequence will continue to grow. In this case, the processor 110 can continue to update the display image and draw chords connected to the corresponding points of the newly received binary numbers, and the processor 180 can generate a video stream based on the updated display image, so that the display device 140 can continue to display the updated display image IMG1 while more chords are added. In other words, as the bit sequence grows, the electronic device 100 can continue to visualize the randomness of the bit sequence, so that the user can more conveniently monitor the quality of the random bits generated by TRNG 170 over a long period of time.

[0037] In this embodiment, in order to more clearly present the generation process of the display image IMG1, the bit sequence SB1 is divided into a plurality of 3-bit binary numbers. However, in this case, as the bit sequence SB1 grows, the display image IMG1 may not be able to clearly visualize its randomness, because all 3-bit binary numbers are only distributed in 8 different values. In some embodiments, the bit sequence SB1 can be divided into a plurality of binary numbers with more bits, such as 8 to 12 bits, according to the length of the bit sequence SB1 to be observed.

[0038] Figure 6 is a schematic diagram of a display image IMG2 generated by the electronic device 100, which shows the randomness of the bit sequence SB2 generated by the TRNG 171, and Figure 7 is a schematic diagram of a display image IMG3 generated by the electronic device 100, which shows the disorder of the bit sequence SB3 generated by another TRNG 172. In this embodiment, the disorder of the bit sequence SB2 is higher and the disorder of the bit sequence SB3 is lower. Figure 6 and Figure 7 In the display image IMG2 and IMG3, the circles C1 and C2 are presented with a lower brightness (ie, black), and the brightness of each chord in the circle is positively correlated with the number of times the chord is drawn.

[0039] like Figure 6 As shown, the circumference of circle C1 has uniform brightness, which means that the binary numbers derived from the bit sequence SB2 are uniformly distributed at different values. Furthermore, the brightness of each chord is similar to each other, and there is no particularly prominent chord or obvious shape, which means that there is no obvious change pattern in the binary numbers. However, since the disorder of the bit sequence SB3 is lower than that of the bit sequence SB2, the displayed image IMG3 shows more regular features than the displayed image IMG2. In some embodiments, the regular features may include, for example, but not limited to, asymmetry, patterns, obvious shapes, and unevenly distributed spots.

[0040] In some embodiments, some regularity features can be used to identify specific predictable regularities in bit sequences. For example, in NIST SP800-90B, collision estimation methods can be used to detect collisions in random bit sequences. By definition, a collision occurs when the same value appears repeatedly in a bit sequence. However, in an ideal situation, if the randomness of the bit sequence is high enough, such a repeated pattern should be rarely observed. Therefore, if collisions occur frequently, it means that the randomness of the bit sequence is very low.

[0041] In the displayed image IMG3, it can be found that the right semicircle is brighter than the left semicircle. This asymmetric feature indicates that the values ​​of the multiple binary numbers divided by the bit sequence SB3 are not evenly distributed, and the values ​​of adjacent binary numbers may be confined to a smaller area. In other words, binary numbers with the same or similar values ​​are repeating, indicating that collisions may occur. Therefore, the observer can expect that if the collision estimation method is used to estimate the disorder of the bit sequence SB3, a lower disorder will be obtained.

[0042] Furthermore, NIST SP800-90B also includes the Longest Repeated Substring (LRS) estimation, which can be used to detect the longest repeated substring in a random bit sequence in order to estimate the redundancy or predictability of the random bit sequence. Figure 7 As shown, the display image IMG3 also includes regular features, which present obvious shapes formed by some frequently drawn chords (e.g., triangles presented in the display image IMG3). Such clearly distinguishable shapes indicate that the random bit sequence changes more frequently between certain specific values, and thus it can be determined that there may be repeated substrings in the bit sequence SB3. In this way, the user can expect that when the LRS estimation method is used to estimate the randomness, the randomness of the bit sequence SB3 may be low.

[0043] In some embodiments, by observing the display image generated by the electronic device 100 or the method M1, more other types of predictability or regularity present in the random bit sequence can also be visually observed. For example, in addition to the predictability and regularity that can be detected using collision estimation and LRS estimation, the predictability and regularity that can be detected using the most common value estimation, Markov estimation, t-Tuple estimation, lag prediction estimation, multiMMC prediction estimation, and LZ78Y prediction estimation defined by NIST SP800-90B can also be visually observed from the display image generated by the electronic device 100 or the method M1.

[0044] That is, the electronic device 100 and the method M1 can generate a display image that can visualize the randomness of a bit sequence without complicated calculations, so that the user can intuitively compare the randomness of different bit sequences by observing the corresponding display images.

[0045] Figure 81 is a schematic diagram of an electronic device 200 according to another embodiment of the present disclosure. The electronic device 200 has a similar structure to the electronic device 100 and can operate according to similar principles. The electronic device 200 includes a data processing unit 210 , a display device 140 , a TRNG interface 150 , and a memory 160 .

[0046] In this embodiment, the data processing unit 210 may be specially designed to execute the method M1. In other words, the data processing unit 210 may be a processor specifically used to execute a built-in program for implementing the method M1 or an application specific integrated circuit (ASIC) capable of implementing the steps of the method M1 through its hardware logic to generate a display image and thus visualize the randomness of the sequence of random bits.

[0047] like Figure 8 As shown, the data processing unit 210 can be coupled to the TRNG interface 150, the memory 160 and the display device 140. Furthermore, in this embodiment, the data processing unit 210, the TRNG interface 150 and the memory 160 can be coupled via a system bus. However, the disclosure is not limited thereto. In other embodiments, the data processing unit 210 can be coupled to the TRNG interface 150 and the memory 160 via other types of connection lines.

[0048] In this embodiment, the TRNG interface 150 can receive the bit sequence SB1 from the TRNG 170 and store the bit sequence SB1 in the memory 160. In addition, the data processing unit 210 can receive the bit sequence SB1 from the memory 160 and generate a display image IMG1 that can visualize the randomness of the bit sequence SB1. Finally, the display image IMG1 can be displayed by the display device 140. In some embodiments, the TRNG 170 can also be disposed in the electronic device 200.

[0049] Furthermore, in some embodiments, the electronic device 200 may further include a display control unit 280, which may update the frame buffer memory and control the display device 140 to display the display image IMG1 accordingly. However, the present disclosure is not limited thereto. In some embodiments, the data processing unit 210 may further be used to control the display device 140, and the display control unit 280 may be omitted.

[0050] In summary, the electronic device and method provided by the embodiments of the present disclosure can present the randomness of a bit sequence in a visual manner without the need for complex calculations. In addition, using the electronic device and method provided by the embodiments of the present disclosure, the user can also visually observe the various types of predictability and regularity present in the bit sequence, thereby being able to more intuitively observe the quality of the random sequence.

[0051] Although the content and advantages of the present disclosure have been described in detail above, it should be understood that various changes, substitutions and modifications may be made to the embodiments described herein without departing from the spirit and scope of the present disclosure as defined by the appended claims. For example, the many procedures described above may be implemented in different ways and may be replaced by other procedures, or a combination thereof.

[0052] Explanation of symbols

[0053] 100,200: Electronic devices

[0054] 110: Processor

[0055] 120,160:Memory

[0056] 130: Program

[0057] 140: Display device

[0058] 150:TRNG interface

[0059] 170,171,172:TRNG

[0060] 180: Processor

[0061] IMG1,IMG2,IMG3: Display images

[0062] M1: Method

[0063] S110, S120, S130, S140, S150: Steps

[0064] SB1, SB2, SB3: bit sequence

[0065] BN_1, BN_2, BN_3, BN_X: binary numbers

[0066] P0,P1,P2,P3,P4,P5,P6,P7: Position

[0067] R1, R2, R3: Radius

[0068] D1,D2,D3: String

[0069] C1,C2:Circle

[0070] 210: Data processing unit

[0071] 280: Display control unit

Claims

1. An electronic device, characterized in that: include: A processor; a first memory; as well as At least one program is stored in the first memory and is used for execution by the processor; The at least one program includes the following instructions: receiving a first bit sequence; Dividing the first bit sequence into a plurality of binary numbers having the same number of bits; Determine a corresponding point on a circumference of a circle for each of the binary numbers according to a center angle positively correlated with a value of each of the binary numbers, wherein corresponding points of binary numbers with different values ​​are located at different positions; Draw a plurality of chords within the circle in a first display image, wherein each of the chords connects corresponding points of two consecutive binary numbers among the binary numbers; and The first display image is displayed to present the brightness of each of the strings, wherein the brightness of each string is related to the number of times the string is drawn, and the brightness distribution formed by the brightness of each of the strings represents the randomness of the first bit sequence.

2. The electronic device according to claim 1, wherein: Also includes: a second memory; and a true random number generator interface, for receiving the first bit sequence from a true random number generator, and sequentially storing the first bit sequence into the second memory; The processor is used for executing the at least one program to receive the first bit sequence from the second memory.

3. The electronic device according to claim 1, wherein: Each of the binary numbers has M bits, where M is a positive integer; A value of a first binary number among the binary numbers is 0; The value of a second binary number among the binary numbers is k, where k is a positive integer less than 2M; and A first radius is connected to a first corresponding point of the first binary number, a second radius is connected to a second corresponding point of the second binary number, and a central angle formed by the first radius and the second radius is 4. The electronic device as claimed in claim 1, characterized in that In the first display image, the brightness of each of the strings is positively correlated with the number of times the string is drawn, or the brightness of each of the strings is negatively correlated with the number of times the string is drawn.

5. The electronic device according to claim 1, wherein: The processor is used for executing the at least one program to receive a second bit sequence, and generating a second display image according to the second bit sequence to present the randomness of the second bit sequence; When the disorder of the first bit sequence is lower than the disorder of the second bit sequence, the first display image presents a more obvious regularity feature than the second display image; and The regularity feature includes at least one of the following: asymmetry, pattern, shape, and non-uniformly distributed spots.

6. The electronic device as claimed in claim 1, wherein: The invention further comprises a display device for displaying the first display image to present the randomness of the first bit sequence.

7. The electronic device as claimed in claim 6, characterized in that When a new binary number is added to the first bit sequence, the processor is further used to generate a series of display images showing chords connected to corresponding points of the new binary number, and the display device is further used to display a video stream formed by the series of display images.

8. An electronic device, characterized in that: include: A data processing unit, for: receiving a first bit sequence; Dividing the first bit sequence into a plurality of binary numbers having the same number of bits; Determine a corresponding point on a circumference of a circle for each of the binary numbers according to a center angle positively correlated with a value of each of the binary numbers, wherein corresponding points of binary numbers with different values ​​are located at different positions; Draw a plurality of chords within the circle in a first display image, wherein each of the chords connects corresponding points of two consecutive binary numbers among the binary numbers; and Displaying the first display image to present the brightness of each of the strings, wherein the brightness of each string is related to the number of times the string is drawn, and a brightness distribution formed by the brightness of each of the strings represents the randomness of the first bit sequence; and A display device is used to display the first display image.

9. The electronic device as claimed in claim 8, characterized in that: Also includes: a memory; and a true random number generator interface, for receiving the first bit sequence from a true random number generator, and sequentially storing the first bit sequence into the memory; The data processing unit is used for receiving the first bit sequence by reading data from the memory.

10. The electronic device according to claim 9, wherein: The invention further comprises the true random number generator, which is used to generate the first bit sequence through a physical process.

11. The electronic device as claimed in claim 8, wherein: Each of the binary numbers has M bits, where M is a positive integer; A value of a first binary number of the binary numbers is 0; A value of a second binary number of the binary numbers is k, wherein k is a positive integer less than 2M; and A first radius is connected to a first corresponding point of the first binary number, a second radius is connected to a second corresponding point of the second binary number, and a central angle formed by the first radius and the second radius is 12. The electronic device as claimed in claim 8, characterized in that In the first display image, the brightness of each of the strings is positively correlated with the number of times the string is drawn, or the brightness of each of the strings is negatively correlated with the number of times the string is drawn.

13. The electronic device as claimed in claim 8, wherein: The data processing unit is further used for receiving a second bit sequence and generating a second display image according to the second bit sequence to present the randomness of the second bit sequence; When the disorder of the first bit sequence is lower than the disorder of the second bit sequence, the first display image presents a more obvious regularity feature than the second display image; and The regularity feature includes at least one of the following: asymmetry, pattern, shape, and non-uniformly distributed spots.

14. The electronic device as claimed in claim 8, characterized in that When a new binary number is added to the first bit sequence, the data processing unit is further used to generate a series of display images showing chords connected to corresponding points of the new binary number, and the display device is further used to display a video stream formed by the series of display images.

15. A method for visualizing the randomness of a bit sequence, characterized in that include: receiving a first bit sequence; Dividing the first bit sequence into a plurality of binary numbers having the same number of bits; Determine a corresponding point on a circumference of a circle for each of the binary numbers according to a center angle positively correlated with a value of each of the binary numbers, wherein corresponding points of binary numbers with different values ​​are located at different positions; Draw a plurality of chords within the circle in a first display image, wherein each of the chords connects corresponding points of two consecutive binary numbers among the binary numbers; and The first display image is displayed to present the brightness of each of the strings, wherein the brightness of each string is related to the number of times the string is drawn, and the brightness distribution formed by the brightness of each of the strings represents the randomness of the first bit sequence.

16. The method according to claim 15, characterized in that Also includes: The first bit sequence is generated by a true random number generator; and The first bit sequence is stored in a memory.

17. The method of claim 15, wherein: Each of the binary numbers has M bits, where M is a positive integer; A value of a first binary number among the binary numbers is 0; The value of a second binary number among the binary numbers is k, where k is a positive integer less than 2M; and A first radius is connected to a first corresponding point of the first binary number, a second radius is connected to a second corresponding point of the second binary number, and a central angle formed by the first radius and the second radius is 18. The method of claim 15, wherein In the first display image, the brightness of each of the strings is positively correlated with the number of times the string is drawn, or the brightness of each of the strings is negatively correlated with the number of times the string is drawn.

19. The method according to claim 15, characterized in that Also includes: receiving a second bit sequence; and Generating a second display image according to the second bit sequence to present the randomness of the second bit sequence; When the disorder of the first bit sequence is lower than the disorder of the second bit sequence, the first display image shows a more obvious regularity feature than the second display image; and The regularity feature includes at least one of the following: asymmetry, pattern, shape, and non-uniformly distributed spots.

20. The method of claim 15, wherein: Also includes: The first display image is displayed by a display device.