Random number generation method, device and equipment
The invention provides a random number generation method, device and equipment, and can be applied to the technical field of databases. The method comprises the steps that n first random number seeds are generated based on a first entropy pool, and weight coefficients corresponding to the first rand...
Gespeichert in:
Hauptverfasser: | , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention provides a random number generation method, device and equipment, and can be applied to the technical field of databases. The method comprises the steps that n first random number seeds are generated based on a first entropy pool, and weight coefficients corresponding to the first random number seeds are generated based on a second entropy pool; generating a target random number seed according to the n first random number seeds and the weight coefficient corresponding to each first random number seed; generating a target random number according to the target random number seed; wherein the first entropy pool and the second entropy pool each comprise entropy data collected by one or more entropy sources, and the entropy data comprise user operation data in the database operation process and/or database operation data; n is a positive integer and is greater than or equal to 1. According to the method, the quality of the random number used in the database can be effectively improved.
本申请提供一种随机数生成方法 |
---|