Random number processing method, device, computer equipment and storage medium

By building a distributed data acquisition node and a random number resource pool, the problems of traditional low random number generation rate and waste of resources are solved, and the scale acquisition and efficient utilization of random numbers are realized, providing users with real-time and efficient random number services.

CN118550503BActive Publication Date: 2024-11-19ZHEJIANG LAB
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202411014836.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-26
Publication Date
2024-11-19
Estimated Expiration
2044-07-26

AI Technical Summary

Technical Problem

The traditional noise source chip generates random numbers at a low rate, which is difficult to meet the needs of large-scale data applications. The random number data generated by privately deployed quantum random number generators cannot be effectively utilized, resulting in high application costs and waste of resources.

Method used

By building a distributed data acquisition node, obtain the original random numbers collected by multiple data acquisition nodes for data preprocessing, determine the candidate random numbers and store them into the random number resource pool, call the target random numbers according to user needs, and transmit them through data stream or File transfer is sent to the user side in a format to realize the scale acquisition, efficient storage and utilization of random numbers.

Benefits of technology

It realizes scale acquisition, efficient storage and application of random numbers, reduces operation and application costs, and provides users with real-time, efficient and highly reliable random number data services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118550503B_ABST
    Figure CN118550503B_ABST
Patent Text Reader

Abstract

The present application relates to a random number processing method, device, computer equipment and storage medium. The method comprises: obtaining the original random numbers collected by multiple data collection nodes, performing data preprocessing on the original random numbers, determining candidate random numbers, and storing the candidate random numbers in a random number resource pool; obtaining a data access request issued by a user end, determining random number demand information and target data transmission form according to the data access request; calling the target random number from the random number resource pool based on the random number demand information; sending the target random number to the user end based on the target data transmission form; the data collection node comprises: a quantum random number generator device, an application device with one or more quantum random number generator chips or modules embedded therein, and / or a software device with a stable random number output function, which can provide users with real-time, efficient and highly reliable random number data services.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a random number processing method, device, computer equipment and storage medium. Background Art

[0002] Random numbers have important technological innovation value and achievement transformation value in the fields of data security, large model security, privacy computing, and cryptography, and have important application value in the data hub platform. For example, in data security, random numbers are used for data desensitization, data encryption, and destruction; in large model training, data enhancement is performed based on random numbers; in privacy computing, random numbers are used to increase the randomness of the algorithm. As the scale of data services grows, the demand for privacy computing and data security increases day by day, and the demand for random numbers also increases. Traditional random number generation and service methods can hardly meet the scale concurrency requirements.

[0003] At present, the rate at which traditional noise source chips generate random numbers is usually low, usually less than 50Mb / s, and the generated random numbers need to be screened twice, which makes it difficult to meet the quality and quantity requirements of a large number of random numbers in practical applications. In contrast, quantum random number generators have the advantages of high randomness and high speed. A typical quantum random data server has a rate of about 1G b / s and can generate 86.4Tb of random data every day. However, there is still a large gap between the amount of data generated and the demand for big data processing. This problem can be solved by deploying a certain number of quantum random number generators by a single user. In addition, large-scale users independently deploy and use a certain number of quantum random number generators alone, which will cause unnecessary waste of resources. Therefore, how to achieve large-scale collection, efficient storage and utilization of random numbers, make full use of the functions of quantum random number generators and reduce the cost of large-scale operations and applications, and provide users with real-time, efficient and highly reliable random number data services, is a problem that needs to be solved. Summary of the invention

[0004] Based on this, it is necessary to provide a random number processing method, device, computer equipment and storage medium that can realize large-scale collection, efficient storage and utilization of random numbers, make full use of the functions of quantum random number generators and reduce large-scale operation and application costs, and provide users with real-time, efficient and highly reliable random number data services in response to the above technical problems.

[0005] In a first aspect, the present application provides a random number processing method, the method comprising:

[0006] Obtaining original random numbers collected by multiple data collection nodes, performing data preprocessing on the original random numbers, determining candidate random numbers, and storing the candidate random numbers in a random number resource pool;

[0007] Obtaining a data access request sent by a user terminal, and determining random number requirement information and a target data transmission form according to the data access request;

[0008] Calling a target random number from the random number resource pool based on the random number demand information;

[0009] Sending the target random number to the user end based on the target data transmission form;

[0010] In one embodiment, sending the target random number to the user terminal based on the target data transmission form includes:

[0011] If the target data transmission form is a file transmission form, the target random number is packaged into a data file, and the data file is sent to the user end through the data transmission interface;

[0012] If the target data transmission form is a data stream transmission form, the target random number is organized into a random number data stream, and the random number data stream is sent to the user end through a data stream transmission node; wherein the sending includes transmission through a data network and downloading from the cloud.

[0013] In one embodiment, if the target data transmission form is a data stream transmission form, the target random number is organized into a random number data stream, and the random number data stream is sent to the user end through a data stream transmission node, including:

[0014] If the target data transmission form is a data stream transmission form, determining a data transmission rate and a random number requirement of the target random number according to the data access request;

[0015] Constructing a data stream transmission node based on the data transmission rate and the random number requirement;

[0016] The target random number is organized into a random number data stream, and the random number data stream is sent to a user end through a data stream transmission node based on the data transmission rate.

[0017] In one of the embodiments, after screening the candidate random numbers in the random number resource pool based on the random number demand information and the remaining information of the candidate random numbers in the random number resource pool, and determining whether there is a target random number that meets the demand among the candidate random numbers, the method further includes:

[0018] If not, generating a random number sharing request according to the target random number, and sending the random number sharing request to the shared resource pool;

[0019] If the shared resource pool successfully verifies the random number sharing request, the target random number is called from the shared resource pool.

[0020] In one embodiment, the random number processing method further includes:

[0021] Determining the number of random numbers of the original random numbers collected by the data collection node within a data collection period according to the data upload rate of the data collection node;

[0022] Determine a node contribution value of the data collection node according to the number of random numbers and data call information of the candidate random numbers corresponding to the data collection node;

[0023] The node operation state of the data collection node is adjusted based on the node contribution value.

[0024] In one embodiment, obtaining the original random numbers collected by the plurality of data collection nodes, and before performing data preprocessing on the original random numbers, further comprising:

[0025] Obtaining identity authentication information of a candidate collection node, and performing authority verification on the candidate collection node according to the identity authentication information;

[0026] Determine the data collection node from the candidate collection nodes according to the permission verification result;

[0027] In a second aspect, the present application further provides a random number processing device, the device comprising:

[0028] A candidate random number storage module is used to obtain original random numbers collected by multiple data collection nodes, perform data preprocessing on the original random numbers, determine candidate random numbers, and store the candidate random numbers in a random number resource pool;

[0029] A data transmission form determination module, used to obtain a data access request sent by a user terminal, and determine random number requirement information and a target data transmission form according to the data access request;

[0030] A target random number determination module, used to call a target random number from the random number resource pool based on the random number requirement information;

[0031] The target random number transmission module is used to send the target random number to the user end based on the target data transmission form.

[0032] In a third aspect, the present application further provides a computer device, the computer device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the following steps when executing the computer program:

[0033] Obtaining original random numbers collected by multiple data collection nodes, performing data preprocessing on the original random numbers, determining candidate random numbers, and storing the candidate random numbers in a random number resource pool;

[0034] Obtaining a data access request sent by a user terminal, and determining random number requirement information and a target data transmission form according to the data access request;

[0035] Calling a target random number from the random number resource pool based on the random number demand information;

[0036] The target random number is sent to the user end based on the target data transmission form.

[0037] In a fourth aspect, the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0038] Obtaining original random numbers collected by multiple data collection nodes, performing data preprocessing on the original random numbers, determining candidate random numbers, and storing the candidate random numbers in a random number resource pool;

[0039] Obtaining a data access request sent by a user terminal, and determining random number requirement information and a target data transmission form according to the data access request;

[0040] Calling a target random number from the random number resource pool based on the random number demand information;

[0041] The target random number is sent to the user end based on the target data transmission form.

[0042] The above-mentioned random number processing method, device, computer equipment and storage medium obtain the original random numbers collected by multiple data collection nodes, perform data preprocessing on the original random numbers, determine the candidate random numbers, and store the candidate random numbers in the random number resource pool; obtain the data access request issued by the user end, determine the random number demand information and the target data transmission form according to the data access request; call the target random number from the random number resource pool based on the random number demand information; send the target random number to the user end based on the target data transmission form. The above-mentioned scheme solves the problem that when users have large-scale random number application requirements, they need to deploy a certain number of quantum random number generators, resulting in high random number application costs, and the random number data generated by privately deployed quantum random number generators cannot be effectively utilized. A quantum random number generator is used to build distributed data collection nodes. Candidate random numbers are determined based on the original random numbers collected by the data collection nodes, and the candidate random numbers are stored in a random number resource pool. Users can call the required target random numbers through the random number resource pool, while expanding the scale of random numbers available for users to choose from. It also realizes large-scale collection, efficient storage and application of random numbers, and can provide real-time, efficient and highly reliable random number data services for large-scale users. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 A diagram showing an application environment of a random number processing method in an embodiment;

[0044] Figure 2 is a flow chart of a random number processing method in another embodiment;

[0045] Figure 3 is a flow chart of a random number processing method in another embodiment;

[0046] Figure 4 is a flow chart of a random number processing method in another embodiment;

[0047] Figure 5 is a flow chart of a random number processing method in another embodiment;

[0048] Figure 6 An exemplary diagram of a random number processing system in one embodiment;

[0049] Figure 7 is a structural block diagram of a random number processing device in one embodiment;

[0050] Figure 8 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0051] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0052] The random number processing method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the terminal 102 communicates with the server 104 through a communication network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. The server 104 obtains the original random numbers collected by multiple data acquisition nodes, performs data preprocessing on the original random numbers, determines the candidate random numbers, and stores the candidate random numbers in the random number resource pool; obtains the data access request issued by the user end, determines the random number demand information and the target data transmission form according to the data access request; calls the target random number from the random number resource pool based on the random number demand information; sends the target random number to the user end and to the terminal 102 based on the target data transmission form through the communication network. Among them, the terminal 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices, and the Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server 104 can be implemented with an independent server or a server cluster consisting of multiple servers.

[0053] In one embodiment, Figure 2 As shown, a random number processing method is provided. This embodiment takes the method applied to a terminal as an example for illustration. The random number processing method can be applied to a server, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. In this embodiment, the method includes the following steps:

[0054] S210, obtaining original random numbers collected by multiple data collection nodes, performing data preprocessing on the original random numbers, determining candidate random numbers, and storing the candidate random numbers in a random number resource pool.

[0055] The data acquisition node can be composed of one or more devices selected from a quantum random number generator device, an application device embedded with one or more quantum random number generator chips or modules, and a software device capable of stably outputting random numbers. Candidate random numbers refer to random numbers that can be selected according to user needs and sent to users. The random number resource pool can be used to store candidate random numbers. The random number resource pool is a data pool that centrally stores and manages random numbers, which contains candidate random numbers corresponding to data acquisition nodes. The number of data acquisition nodes is at least two, and each data acquisition node can independently complete the task of collecting original random numbers.

[0056] Specifically, the original random numbers collected by the data collection node are obtained, and the valid random numbers are data labeled to mark the data source of the valid random numbers, that is, to mark which data collection node the valid random numbers come from, the labeled valid random numbers are grouped to determine the original data group, and randomness detection is performed on each original data group respectively. The target data group is determined from the original data group according to the randomness detection result, and the original random numbers in the target data group are used as candidate random numbers, and the candidate random numbers are stored in a random number resource pool.

[0057] S220: Obtain a data access request sent by the user terminal, and determine random number requirement information and target data transmission form according to the data access request.

[0058] The data access request refers to the request information sent by the user to access one or more candidate random numbers in the random number resource pool. The data access request can be a data acquisition request or a data download request. The data access request can include the data transmission rate and the random number requirement. The target data transmission form can be a file transmission form and / or a data stream transmission form. The random number requirement information can include the random number requirement and the random number data type.

[0059] Specifically, obtain the data access request sent by the user end, analyze the data access request, determine the identity information of the data access user corresponding to the user end according to the analysis result of the data access request, determine whether the user has random number access authority according to the identity information, and if so, determine the random number requirement information and target data transmission form according to the data access request.

[0060] S230: Call a target random number from a random number resource pool based on the random number demand information.

[0061] The target random number is a candidate random number selected from a random number resource pool according to random number demand information.

[0062] Specifically, when storing the candidate random numbers in the random number resource pool, the candidate random numbers and the data feature information of the candidate random numbers can be stored in the random number resource pool accordingly. When the target random number needs to be called, based on the comparison result of the random number requirement information and the data feature information of the candidate random numbers, that is, the candidate random numbers corresponding to the same data feature information are used as the target random numbers, and the target random number is determined and called from the candidate random numbers.

[0063] S240: Send the target random number to the user end based on the target data transmission form.

[0064] Specifically, if the target data transmission form is determined to be a data stream transmission form according to the data access request sent by the user end, the target random number can be organized into a random number data stream, and the random number data stream can be sent to the user end; if the target data transmission form is a file transmission form, the target random number can be packaged into a data file, and the data file can be sent to the user end. Sending the random number data stream to the user end includes transmitting through a data network and downloading from the cloud.

[0065] Preferably, the random number resource pool may include a data buffer area and a data storage area, and the candidate random number may be encapsulated as a random number data packet or a random number sequence with a certain length, and the obtained random number data packet or random number sequence may be cached in the data buffer area. When calling the target random number, the target random number may be first called from the random number data packet or random number data sequence in the data buffer area. If the data in the data buffer area does not meet the calling requirements of the target random number, the candidate random number is called from the data storage area to supplement the data buffer area, and then the target random number is called from the data buffer area. When the candidate random number cached in the data buffer area is not called within a preset time range, the candidate random number that has not been called may be stored in the data storage area. Dividing the random number resource pool into a data buffer area or a data storage area can alleviate the storage pressure of the data storage area.

[0066] It should be noted that the data acquisition node includes: a quantum random number generator device, an application device embedded with one or more quantum random number generator chips or modules, and / or a software device with a stable random number output function. Data preprocessing includes: performing a randomness test on the original data, and encapsulating a certain amount of data that passes the test into a data packet or a random sequence of a certain length.

[0067] In the above random number processing method, the original random number collected by the data collection node is obtained, the original random number is preprocessed, the candidate random number is determined, and the candidate random number is stored in the random number resource pool; the data access request issued by the user end is obtained, and the random number requirement information and the target data transmission form are determined according to the data access request; the target random number is called from the random number resource pool based on the random number requirement information; and the target random number is sent to the user end based on the target data transmission form. The above scheme solves the problem that when the user has a large-scale random number application demand, a certain number of quantum random number generators need to be deployed, resulting in high random number application costs, and the random number data generated by the privately deployed quantum random number generator cannot be reasonably utilized. Multiple quantum random number generators are used to build distributed data collection nodes, and candidate random numbers are determined according to the original random numbers collected by the data collection nodes, and the candidate random numbers are stored in the random number resource pool. While expanding the scale of random numbers available for users to choose, the reasonable storage and application of random numbers is realized, and the functions of quantum random number generators are fully utilized and the scale operation and application costs are reduced, which can provide users with real-time, efficient and highly reliable random number data services.

[0068] In one embodiment, Figure 3 As shown, the target random number is sent to the user end based on the target data transmission form, including:

[0069] S310: If the target data transmission form is a file transmission form, the target random number is packaged into a data file, and the data file is sent to the user end through a data transmission interface.

[0070] It should be noted that different target data transmission forms correspond to different data transmission methods. An API (Application Programming Interface) can be used as a data transmission interface for transmitting data files. When the target data transmission form is a file form, the target random number is packaged and processed to determine the data file, and the data file is sent to the user end through the data transmission interface.

[0071] S320: If the target data transmission form is a data stream transmission form, the target random number is sorted into a random number data stream, and the random number data stream is sent to the user end through the data stream transmission node.

[0072] Among them, the data stream transmission node is a virtual data node, and the data stream transmission node can be a data transmission interface or optical fiber link in the cloud.

[0073] Specifically, a data stream transmission node composed of an optical fiber link can be constructed, and the data stream transmission node is used to transmit a random number data stream. If the target data transmission form is a data stream transmission form, the target random number is organized into a random number data stream, and the random number data stream is sent to the user end through the data stream transmission node.

[0074] The above-mentioned data stream transmission node can set the real-time output random data stream rate of the virtual data node according to the data stream rate customized by the user and the dynamic margin of the random number resource pool, set the random number transmission channel between the virtual data node and the user device, and provide the user with a real-time random data stream based on the random number transmission channel. Exemplarily, in a possible embodiment, there are a total of 5,000 data nodes, the rate of all nodes is 1Gb / s, and the maximum capacity of the data resource pool is 1000Tb. Assuming that a user customizes a 10-minute 1Tb / s random data stream service, the total demand is 600Tb, then the real-time service capabilities of 1,000 1Gb / s data nodes can be aggregated, or a virtual data node with a random data stream rate of 1Tb / s can be constructed based on 600Tb of data in the resource pool, and output to the user receiving device through 10 parallel 100Gb / s optical fiber links.

[0075] The above method constructs corresponding data transmission channels for different target data transmission forms. If the target data transmission form is a file transmission form, the random number file composed of the target random numbers is sent to the user end through the data transmission interface. If the target data transmission form is a data stream transmission form, the random number data stream is sent to the user end through the data stream transmission node. This can improve the random number transmission efficiency and the stability of random number transmission while meeting the diverse needs of users.

[0076] In one embodiment, Figure 4 As shown, if the target data transmission form is a data stream transmission form, the target random number is sorted into a random number data stream, and the random number data stream is sent to the user end through the data stream transmission node, including:

[0077] S410: If the target data transmission form is a data stream transmission form, determine the data transmission rate and the random number requirement of the target random number according to the data access request.

[0078] It should be noted that when the target data transmission form required by the data access party is data stream transmission, it is necessary to build a data stream transmission node for random number data stream transmission. The random number transmission rate of the data stream transmission node can be determined based on the data transmission rate and the random number demand of the target random number.

[0079] Specifically, if the target data transmission form is a data stream transmission form, the data access request is analyzed, and the data transmission rate and the number of random numbers of the target random numbers expected by the data access party are determined according to the analysis result.

[0080] S420: construct a data stream transmission node based on the data transmission rate and the random number requirement.

[0081] For example, if the data access party expects a random data stream service with a data transmission rate of 1Tb / s and the expected data transmission time is 10 minutes, the random number demand of the data access party is 600Tb. A data stream transmission node with a random number data stream transmission rate of 1Tb / s can be constructed based on the target random number of 600Tb in the random number resource pool.

[0082] S430, organizing the target random number into a random number data stream, and sending the random number data stream to the user end through the data stream transmission node based on the data transmission rate.

[0083] The above scheme determines the data transmission rate and the random number requirement of the target random number according to the data access request, and constructs the data stream transmission node according to the data transmission rate and the random number requirement, so that the data stream transmission node can stably transmit the random number data stream that meets the needs of the data access party.

[0084] In one embodiment, Figure 5 As shown, calling the target random number from the random number resource pool based on the random number demand information includes:

[0085] S510, based on the random number demand information and the candidate feature information of the candidate random numbers in the random number resource pool, based on the random number demand information and the surplus information of the candidate random numbers in the random number resource pool, screen the candidate random numbers in the random number resource pool to determine whether there is a target random number that meets the demand among the candidate random numbers.

[0086] Specifically, when storing the candidate random numbers in the random number resource pool, the candidate random numbers and the data feature information of the candidate random numbers are stored in the random number resource pool accordingly. The random number requirement information is compared with the data feature information of the candidate random numbers for consistency, and whether the target random number exists in the candidate random numbers is determined according to the consistency comparison result.

[0087] S520: If yes, call the target random number from the random number resource pool.

[0088] The above scheme trains the neural network model according to the corresponding sample data feature information and sample random numbers, determines the data analysis model, and determines the target random number according to the random number requirement information through the data analysis model, which can improve the efficiency of obtaining the target random number.

[0089] In one embodiment, after screening the candidate random numbers in the random number resource pool based on the random number demand information and the remaining information of the candidate random numbers in the random number resource pool, and determining whether there is a target random number that meets the demand among the candidate random numbers, the method further includes:

[0090] If not, a random number sharing request is generated according to the target random number, and the random number sharing request is sent to the shared resource pool; if the shared resource pool verifies the random number sharing request, the target random number is called from the shared resource pool.

[0091] It should be noted that after some random number managers build a random number resource pool, they can realize resource sharing of the random number resource pool by signing a network agreement.

[0092] Specifically, if the target random number does not exist in the random number resource pool, a random number sharing request can be issued to the shared resource pool of the random number resource pool, so that the shared resource pool verifies the random number sharing request to verify whether a random number sharing network protocol is established between the random number resource pool and the shared resource pool. If so, the random number sharing request is verified to be successful, and if not, the random number sharing request is not verified to be successful. If the random number sharing request is verified to be successful, the target random number requested to be accessed by the data access party can be called from the shared resource pool to send the target random number to the user end based on the target data transmission form.

[0093] Optionally, a data sharing time may be set. When the time for the shared resource pool to share the random numbers it manages with the random number resource pool is equal to the sharing time, the resource sharing with the random number resource pool is stopped.

[0094] It should be noted that if the amount of candidate random number data in the random number resource pool is insufficient, a random number sharing request can also be issued to the shared resource pool to call the random numbers stored in the shared resource pool to meet the random number access needs of the data access party.

[0095] The above scheme realizes the sharing of random number resource pools managed by different random number managers, further improving the utilization efficiency of random numbers.

[0096] In one embodiment, the random number processing method further includes:

[0097] The number of random numbers of the original random numbers collected by the data collection node within the data collection cycle is determined according to the data upload rate of the data collection node; the node contribution value of the data collection node is determined according to the number of random numbers and the data call information of the candidate random numbers corresponding to the data collection node; and the node operation status of the data collection node is adjusted based on the node contribution value.

[0098] The data collection period can be set according to actual needs, for example, one hour, one day or one week. The data upload rate refers to the upload rate of the candidate random numbers corresponding to the data collection node.

[0099] Specifically, the data upload rate of the data collection node is obtained, and the number of random numbers of the original random numbers collected by each data collection node within the data collection period is determined according to the data upload rate. The number of random numbers and the node identification of the corresponding data collection node are stored on the chain to ensure the credibility of the total value of random numbers in the random number resource pool and prevent the candidate random numbers in the random number resource pool from being tampered with or forged. The data call information of the candidate random number can be the number of times the candidate random number is called within a period of time. The data call information of the candidate random number corresponding to the data collection node can perform weighted summation on the number of random numbers and the data call information of the candidate random number corresponding to the data collection node to determine the node contribution value of the data collection node. The target collection node can be screened out from the data collection node according to the node contribution value and the preset contribution value threshold. For example, the data collection node whose node contribution value is less than the contribution value threshold can be used as the target collection node. The data call information of the candidate random number corresponding to the data collection node, that is, the number of times all the candidate random numbers corresponding to the data collection node are called.

[0100] The above scheme can determine the node contribution value of the data acquisition node according to the data upload rate and data call information corresponding to the data acquisition node, so as to adjust the node operation status of the data acquisition node according to the node contribution value, thereby avoiding the waste of data transmission resources and ensuring the high availability of the data acquisition node.

[0101] In one embodiment, obtaining the original random number collected by the data collection node, performing data preprocessing on the original random number, and determining the candidate random number include:

[0102] The identity authentication information of the candidate collection nodes is obtained, and the authority of the candidate collection nodes is verified according to the identity authentication information; and the data collection nodes are determined from the candidate collection nodes according to the authority verification result.

[0103] The identity verification information may be the node number of the candidate collection node, or the digital certificate of the candidate collection node. For example, the identity verification information includes the identity document (ID) and / or CA (Certificate Authority) certificate of the collection node; the authority verification includes online verification of the ID and / or CA certificate of the collection node, and the data node that passes the identity verification becomes a legitimate data node.

[0104] Specifically, the identity authentication information of the candidate collection node can be obtained, and an identity authentication algorithm that is resistant to quantum computing can be used to perform permission verification on the candidate collection node based on the identity authentication information to determine whether the candidate collection node has the permission to access the random number resource pool, and the candidate collection node that passes the permission verification is used as the data collection node.

[0105] In one embodiment, the random number processing method can be implemented by a random number processing system, such as Figure 6 As shown, the random number processing system includes a data collection node, a data collection management unit, a random number resource pool, a data preprocessing unit, a data transmission interface and a data stream transmission node, wherein the number of data collection nodes is m, where m is an integer greater than 2, and the random number processing method specifically includes:

[0106] The identity authentication information of the candidate collection nodes can be obtained through the data collection management unit, and an identity authentication algorithm resistant to quantum computing can be used to perform permission verification on the candidate collection nodes based on the identity authentication information to determine whether the candidate collection nodes have the permission to access the random number resource pool, and the candidate collection nodes that pass the permission verification will be used as data collection nodes.

[0107] The original random numbers are collected by the data collection nodes and sent to the data collection management unit. The data collection management unit can assign data collection tasks to the data collection nodes, monitor the node operation status of the data collection nodes, and collect the node status information of the data collection nodes. It can be used to issue alarms or remotely open or close data nodes when necessary. For example, when the node operation status of the data collection node is abnormal, the data collection management unit can close the data collection node with abnormal operation status.

[0108] The candidate random numbers are transmitted to the data preprocessing unit through the data acquisition management unit, and the valid random numbers are data labeled to mark the data source of the valid random numbers. The labeled valid random numbers are grouped to determine the original data group, and randomness detection is performed on each original data group respectively. The target data group is determined from the original data group according to the randomness detection result, and the original random numbers in the target data group are used as candidate random numbers, and the candidate random numbers are stored in the random number resource pool.

[0109] The data acquisition management unit also obtains a data access request sent by the user end, analyzes the data access request, determines the identity information of the data access user corresponding to the user end according to the analysis result of the data access request, determines whether the user has the random number access right according to the identity information, and if so, determines the random number requirement information and the target data transmission form according to the data access request. The data acquisition management unit calls the target random number from the random number resource pool based on the random number requirement information.

[0110] The data transmission interface can transmit random numbers. When the target data transmission form is a file form, the data acquisition management unit packages the target random numbers, determines the random number file, and sends the random number file to the user end through the data transmission interface. The data stream transmission node can transmit the random number data stream. If the target data transmission form is a data stream transmission form, the data acquisition management unit organizes the target random numbers into a random number data stream, and sends the random number data stream to the user end through the data stream transmission node.

[0111] The above scheme obtains the original random number collected by the data collection node, performs data preprocessing on the original random number, determines the candidate random number, and stores the candidate random number in the random number resource pool; obtains the data access request issued by the user end, determines the random number demand information and the target data transmission form according to the data access request; calls the target random number from the random number resource pool based on the random number demand information; sends the target random number to the user end based on the target data transmission form. The above scheme solves the problem that when the user has a large-scale random number application demand, a certain number of quantum random number generators need to be deployed, resulting in high random number application costs, and the random number data generated by the deployed quantum random number generator cannot be reasonably utilized. Using quantum random number generators to build distributed data collection nodes, determining candidate random numbers according to the original random numbers collected by the data collection nodes, and storing the candidate random numbers in the random number resource pool, users can call the required target random numbers through the random number resource pool, while expanding the scale of random numbers available for users to choose, realizing the reasonable storage and application of random numbers, and providing users with real-time, efficient and highly reliable random number data services.

[0112] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0113] Based on the same inventive concept, the embodiment of the present application also provides a random number processing device for implementing the random number processing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more random number processing device embodiments provided below can refer to the limitations of the random number processing method above, and will not be repeated here.

[0114] In one embodiment, Figure 7 As shown, a random number processing device is provided, comprising: a candidate random number storage module 701, a data transmission form determination module 702, a target random number determination module 703 and a target random number transmission module 704, wherein:

[0115] The candidate random number storage module 701 is used to obtain the original random numbers collected by the data collection node, perform data preprocessing on the original random numbers, determine the candidate random numbers, and store the candidate random numbers in the random number resource pool;

[0116] The data transmission form determination module 702 is used to obtain a data access request sent by a user terminal, and determine the random number requirement information and the target data transmission form according to the data access request;

[0117] A target random number determination module 703 is used to call a target random number from a random number resource pool based on random number demand information;

[0118] The target random number transmission module 704 is used to send the target random number to the user end based on the target data transmission form.

[0119] Exemplarily, the target random number transmission module 704 is specifically used for:

[0120] If the target data transmission form is a file transmission form, the target random number is packaged into a random number file, and the random number file is sent to the user end through the data transmission interface;

[0121] If the target data transmission form is a data stream transmission form, the target random number is organized into a random number data stream, and the random number data stream is sent to the user end through the data stream transmission node.

[0122] Exemplarily, the target random number transmission module 704 is further specifically used for:

[0123] If the target data transmission form is a data stream transmission form, the data transmission rate and the random number requirement of the target random number are determined according to the data access request;

[0124] Construct data stream transmission nodes based on data transmission rate and random number requirements;

[0125] The target random number is organized into a random number data stream, and the random number data stream is sent to the user end based on the data transmission rate through the data stream transmission node.

[0126] Exemplarily, the target random number determination module 703 is specifically used for:

[0127] Obtain a sample access request, and determine the sample data feature information and sample random number corresponding to the sample access request;

[0128] Determine the data analysis model based on the characteristic information of the sample data;

[0129] Inputting random number requirement information into a data analysis model, and using output data of the data analysis model as a target random number;

[0130] Based on the random number demand information and the remaining information of the candidate random numbers in the random number resource pool, the candidate random numbers in the random number resource pool are screened to determine whether there is a target random number that meets the demand among the candidate random numbers;

[0131] If yes, the target random number is called from the random number resource pool.

[0132] Exemplarily, the target random number determination module 703 is further specifically configured to:

[0133] If the target random number does not exist in the candidate random numbers, a random number sharing request is generated according to the target random number, and the random number sharing request is sent to the shared resource pool;

[0134] If the shared resource pool verifies the random number sharing request successfully, the target random number is called from the shared resource pool.

[0135] Exemplarily, the random number processing device further includes:

[0136] A random number quantity statistics module is used to determine the random number quantity of the original random numbers collected by the data collection node within the data collection period according to the data upload rate of the data collection node;

[0137] A node contribution value determination module is used to determine the node contribution value of the data collection node according to the number of random numbers and the data call information of the candidate random numbers corresponding to the data collection node;

[0138] The node operation status adjustment module is used to adjust the node operation status of the data collection node based on the node contribution value.

[0139] Exemplarily, the random number processing device further includes:

[0140] The permission verification module is used to obtain the identity verification information of the candidate collection node and perform permission verification on the candidate collection node according to the identity verification information;

[0141] The data collection node determination module is used to determine the data collection node from the candidate collection nodes according to the authority verification result.

[0142] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 8 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a random number processing method is realized. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

[0143] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0144] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0145] Step 1: Obtain the original random number collected by the data collection node, perform data preprocessing on the original random number, determine the candidate random number, and store the candidate random number in the random number resource pool;

[0146] Step 2: Obtain a data access request from the user end, and determine the random number requirement information and the target data transmission form according to the data access request;

[0147] Step 3: Call the target random number from the random number resource pool based on the random number demand information;

[0148] Step 4: Send the target random number to the user end based on the target data transmission form.

[0149] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0150] Step 1: Obtain the original random number collected by the data collection node, perform data preprocessing on the original random number, determine the candidate random number, and store the candidate random number in the random number resource pool;

[0151] Step 2: Obtain a data access request from the user end, and determine the random number requirement information and the target data transmission form according to the data access request;

[0152] Step 3: Call the target random number from the random number resource pool based on the random number demand information;

[0153] Step 4: Send the target random number to the user end based on the target data transmission form.

[0154] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0155] Step 1: Obtain the original random number collected by the data collection node, perform data preprocessing on the original random number, determine the candidate random number, and store the candidate random number in the random number resource pool;

[0156] Step 2: Obtain a data access request from the user end, and determine the random number requirement information and the target data transmission form according to the data access request;

[0157] Step 3: Call the target random number from the random number resource pool based on the random number demand information;

[0158] Step 4: Send the target random number to the user end based on the target data transmission form.

[0159] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.

[0160] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0161] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0162] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A random number processing method, It is characterized in that include: Obtaining original random numbers collected by multiple data collection nodes, performing data preprocessing on the original random numbers, determining candidate random numbers, and storing the candidate random numbers in a random number resource pool; Obtaining a data access request sent by a user terminal, and determining random number requirement information and a target data transmission form according to the data access request; Based on the random number demand information and the remaining information of the candidate random numbers in the random number resource pool, the candidate random numbers in the random number resource pool are screened to determine whether there is a target random number that meets the demand among the candidate random numbers; If yes, calling the target random number from the random number resource pool; If not, a random number sharing request is sent to the shared resource pool of the random number resource pool, so that the shared resource pool verifies the random number sharing request to verify whether a random number sharing network protocol is established between the random number resource pool and the shared resource pool. If so, the random number sharing request is verified to be successful; if not, the random number sharing request is not verified to be successful; wherein the shared resource pool can realize resource sharing of the random number resource pool by signing a network protocol; If the random number sharing request is verified, the target random number requested by the data access party can be called from the shared resource pool to send the target random number to the user end based on the target data transmission form; Sending the target random number to the user end based on the target data transmission form; The data collection node includes: a quantum random number generator device, an application device embedded with one or more quantum random number generator chips or modules, and / or a software device with a function of stably outputting random numbers.

2. The method according to claim 1, It is characterized in that Sending the target random number to the user end based on the target data transmission form includes: If the target data transmission form is a file transmission form, the target random number is packaged into a data file, and the data file is sent to the user end through the data transmission interface; If the target data transmission form is a data stream transmission form, the target random number is organized into a random number data stream, and the random number data stream is sent to the user end through a data stream transmission node.

3. The method according to claim 2, It is characterized in that If the target data transmission form is a data stream transmission form, the target random number is sorted into a random number data stream, and the random number data stream is sent to the user end through a data stream transmission node, including: If the target data transmission form is a data stream transmission form, determining a data transmission rate and a random number requirement of the target random number according to the data access request; Constructing a data stream transmission node based on the data transmission rate and the random number requirement; The target random number is organized into a random number data stream, and the random number data stream is sent to a user end through a data stream transmission node based on the data transmission rate.

4. The method according to claim 1, It is characterized in that Also includes: Determining the number of random numbers of the original random numbers collected by the data collection node within a data collection period according to the data upload rate of the data collection node; Determine a node contribution value of the data collection node according to the number of random numbers and data call information of the candidate random numbers corresponding to the data collection node; The node operation state of the data collection node is adjusted based on the node contribution value.

5. The method according to claim 1, It is characterized in that The method further includes obtaining original random numbers collected by multiple data collection nodes and performing data preprocessing on the original random numbers: Obtaining identity authentication information of a candidate collection node, and performing authority verification on the candidate collection node according to the identity authentication information; The data collection node is determined from the candidate collection nodes according to the permission verification result.

6. A random number processing device, It is characterized in that The random number processing device comprises: A candidate random number storage module is used to obtain original random numbers collected by multiple data collection nodes, perform data preprocessing on the original random numbers, determine candidate random numbers, and store the candidate random numbers in a random number resource pool; A data transmission form determination module, used to obtain a data access request sent by a user terminal, and determine random number requirement information and a target data transmission form according to the data access request; A target random number determination module is used to screen the candidate random numbers in the random number resource pool based on the random number demand information and the surplus information of the candidate random numbers in the random number resource pool to determine whether there is a target random number that meets the demand among the candidate random numbers; if so, call the target random number from the random number resource pool; if not, send a random number sharing request to the shared resource pool of the random number resource pool so that the shared resource pool verifies the random number sharing request to verify whether a random number sharing network protocol is established between the random number resource pool and the shared resource pool; if so, the random number sharing request is verified to be successful; if not, the random number sharing request is not verified to be successful; wherein the shared resource pool can realize resource sharing of the random number resource pool by signing a network protocol; if the random number sharing request is verified to be successful, the target random number requested to be accessed by the data access party can be called from the shared resource pool to send the target random number to the user end based on the target data transmission form; The target random number transmission module is used to send the target random number to the user end based on the target data transmission form.

7. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

8. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Distributed multi-party random number generation method and system based on hardware

    CN110457006A

  • Data sharing management method and system, and computer readable storage medium

    CN113421052A

  • Key generation method, device and system, encryption method, electronic equipment and computer readable storage medium

    CN113422679A

  • Data transmission method and device and storage medium

    CN114978483A

  • Data processing method and system applied to fishery management

    CN115174602A