# US 2014/0279813 A1 · Random number generator and random number health test method thereof

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2014/0279813 A1
- Document ID: US20140279813A1
- Status: Published application
- Kind: A1
- Application number: 14/088,622
- Filed: 2013-11-25
- Published: 2014-09-18
- Earliest claimed: 2013-03-12
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Ihor VASYLTSOV
- Web page: https://patentgrep.com/patent/US20140279813A1

## CPC

- G06N 5/00: Computing arrangements using knowledge-based models
- G06F 7/58: Random or pseudo-random number generators
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A random number health test method according to the inventive concepts including generating a random number, counting occurrences of at least two words in the generated random number, respectively, calculating probability values corresponding to occurrences of the two counted words; calculating minimum entropies (Hmin) of the respective probability values, and determining health of the generated random numbers using the calculated minimum entropies (Hmin) may be provided.

## Claims

### Claim 1

A random number health test method comprising:
generating a random number;
counting occurrences of at least two words in the generated random number, respectively;
calculating probability values corresponding to occurrences of the two counted words;
calculating minimum entropies (Hmin) of the respective probability values; and
determining health of the generated random number using the calculated minimum entropies (Hmin).

### Claim 2 (depends on 1)

The method of claim 1, wherein sizes of the two words are different from each other.

### Claim 3 (depends on 1)

The method of claim 1, wherein the two words comprise a first word and a second word, the first word consisting of one or more ‘1’ words, the second word consisting of one or more ‘0’ words, and the first and second words being a same size.

### Claim 4 (depends on 3)

The method of claim 3, wherein the calculating probability values calculates a first probability value of the first word and a second probability value of the second word.

### Claim 5 (depends on 3)

The method of claim 3, wherein the calculating probability values calculates a probability value of a greater count value between a count value of the first word and a count value of the second word.

### Claim 6 (depends on 5)

The method of claim 5, wherein the calculating minimum entropies (Hmin) further comprises:
calculating a minimum entropy (Hmin) on the probability value of the greater count value.

### Claim 7 (depends on 1)

The method of claim 1, wherein the calculating minimum entropies (Hmin) calculates each of the minimum entropies (Hmin) based on Hmin=−log2(Pmax), wherein Pmax is a probability value of each of the two words.

### Claim 8 (depends on 1)

The method of claim 1, wherein the calculating minimum entropies (Hmin) calculates the minimum entropies (Hmin) using a piece linear approximation method, and
wherein the piece linear approximation method uses a table storing a plurality of approximation coefficients corresponding to respective probabilities of a plurality of ranges of the respective counted words.

### Claim 9 (depends on 1)

The method of claim 1, wherein the determining health of the generated random number determines the health of the random number using a health determination function value, the health determination function value being a difference between the calculated minimum entropies.

### Claim 10 (depends on 1)

The method of claim 1, further comprising:
outputting a smallest minimum entropy (Hmin) among the calculated minimum entropies (Hmin), after determining the health of the random number, as a health result value of the random number.

### Claim 11

A random number health test method comprising:
generating a random number;
calculating a first minimum entropy (Hmin) of a first word, the first word consisting of one or more ‘1’ words in the generated random number;
calculating a second minimum entropy (Hmin) of a second word, the second word consisting of one or more ‘0’ words in the generated random number;
calculating a health determination function value based on the first and second minimum entropies (Hmin); and
determining whether to output one of the first and second minimum entropies based on a health determination function value and a reference value.

### Claim 12 (depends on 11)

The method of claim 11, further comprising:
calculating a third minimum entropy (Hmin) of third word, the third word consisting of one or more ‘0’ words and having a same size as the first word; and
wherein the determining determines to output a smaller one between the first and third minimum entropies (Hmin) as an updated random number if the health determination function value is smaller than the reference value.

### Claim 13 (depends on 11)

The random number health test method of claim 11, further comprising:
counting the first word to calculate a probability value of the counted first word;
counting the second word to calculate a probability value of the counted second word; and
counting a third word to calculate a probability value of a third word, the third word consisting of one or more ‘0’ words and having a same size as the first word.

### Claim 14 (depends on 11)

The method of claim 11, further comprising:
counting the first word to calculate a probability value of the counted first word;
counting the second word to calculate a probability value of the counted second word; and
changing ‘1’ into ‘0’ in the random number to calculate a probability value of a third word, the third word consisting of one or more ‘0’ words and having a same size as the first word.

### Claim 15 (depends on 11)

The method of claim 11, wherein the first word is ‘1’ and the second word is ‘11’.

### Claim 16

A piece linear approximation method for calculating a minimum entropy (Hmin), the method comprising:
selecting a range of approximation coefficients corresponding to a probability of a word;
applying piece linear approximation coefficients corresponding to the selected range to a computation block; and
computing the minimum entropy (Hmin) using the applied piece linear approximation coefficients.

### Claim 17 (depends on 16)

The method of claim 16 further comprising:
decomposing and storing the piece linear approximation coefficients in a memory table.

### Claim 18 (depends on 17)

The method of claim 17 further comprising:
loading piece linear approximation coefficients into the memory table in a factorized form.

### Claim 19 (depends on 16)

The method of claim 16, further comprising:
calculating temporary coefficients in parallel with the applying or between the applying and the computing.

### Claim 20 (depends on 19)

The method of claim 19, wherein the computing includes summing the calculated temporary coefficients to calculate the minimum entropy (Hmin) value.
