CN108648323A - Choosing method, device, computer equipment and the storage medium of target information - Google Patents
Choosing method, device, computer equipment and the storage medium of target information Download PDFInfo
- Publication number
- CN108648323A CN108648323A CN201810443865.3A CN201810443865A CN108648323A CN 108648323 A CN108648323 A CN 108648323A CN 201810443865 A CN201810443865 A CN 201810443865A CN 108648323 A CN108648323 A CN 108648323A
- Authority
- CN
- China
- Prior art keywords
- target
- information
- breath
- random number
- confidence
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07C—TIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
- G07C15/00—Generating random numbers; Lottery apparatus
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
This application involves a kind of choosing method of target information, device, computer equipment and storage mediums.The method includes:Receive the participation in the election request of breath to be selected of winning the confidence, wherein participation in the election request includes the identification strings of win the confidence breath and participation in the election request to be selected;It is taken to be selected in information preservation to list to be chosen;Target random number seed is generated according to original random number seed and identification strings;According to target random number seed target information is chosen from list to be chosen.The update of target random number seed is related with all participation in the election requests for breath of winning the confidence to be selected in this method, no longer target random number seed is determined by a small number of information, greatly improve the randomness of target random number seed, reduce the possibility of any Human disturbance number of shaking result, the randomness for the target information chosen according to target random number seed also greatly increases, and improves the fairness that target information is chosen.
Description
Technical field
This application involves technical field of data processing, more particularly to a kind of choosing method of target information, device, calculating
Machine equipment and storage medium.
Background technology
With the continuous development of society, social resources are gradually short, such as car plate, degree, house etc., carrying out short money
When source is distributed, usually ensure the fair and just of resource allocation by randomly selecting distribution object.
For example, in the current automotive license plate number of shaking mode, several scenes are usually randomly selected by notary public scene
Personnel, then by these Field Force, everyone randomly selects 10 to 9 number, forms random seed successively, it is then that this is random
Seed initialization pseudo-random number generator, the application number signed from the selection that do not put back in all car plate application numbers.
In order to ensure choose distribution object fairness, pseudo-random number generator generate random number need to ensure it is certain with
Machine, but pseudo-random number generator will produce identical output when using certain random seed, and the existing number of shaking side
In formula, the randomness of the generating process of random seed is relatively low, once having grasped random seed, target information selection is often to determine
, the randomness of the selection result of target information is also with decreasing.
Invention content
Based on this, it is necessary to be difficult to ensure the randomness of random seed for the generating process of above-mentioned random seed and cause
The technical issues of randomness that target information is chosen reduces provides a kind of choosing method of target information, device, computer equipment
And storage medium.
A kind of choosing method of target information, includes the following steps:
Receive the participation in the election request of breath to be selected of winning the confidence, wherein the participation in the election request includes breath and the institute to be selected of winning the confidence
State the identification strings of participation in the election request;
It to be selected is taken described in information preservation to list to be chosen;
Target random number seed is generated according to original random number seed and the identification strings;
According to the target random number seed target information is chosen from the list to be chosen.
It is described random according to original random number seed and identification strings generation target in one of the embodiments,
It is further comprising the steps of after the step of several sons:
Within the default participation in the election registration period, the target random seed is saved as into original random seed, and jump to and connect
The step of receiving the participation in the election request of breath to be selected of winning the confidence.
It is described by after the step to be selected taken in information preservation to list to be chosen in one of the embodiments,
It is further comprising the steps of:
Generate the application number of the breath to be selected of winning the confidence;
Described the step of target information is chosen from the list to be chosen according to the target random number seed, including with
Lower step:
Using the target random number seed initializing pseudo random number generator, the application number from the list to be chosen
Target application number is chosen in screening;
Target information is determined according to the target application number.
Further include following in one of the embodiments, before the step of participation in the election request for receiving breath to be selected of winning the confidence
Step:
Receive the registration request that registration terminal is initiated, wherein the registration request includes first identifier information and second
Identification information;
Breath to be selected of winning the confidence is generated according to the first identifier information and second identifier information.
It is described by the step to be selected taken in information preservation to list to be chosen in one of the embodiments, including
Following steps:
The first identifier information and the second identifier information of the breath to be selected of winning the confidence are verified, it is described to test
Card includes uniqueness verification, the first identifier information and the institute of the first identifier information and the second identifier information
State at least one of the legitimate verification of second identifier information;
If the first identifier information and second identifier information of the breath to be selected of winning the confidence to be selected are won the confidence by verification by described
Breath is preserved into list to be chosen.
It is described in one of the embodiments, that mesh is chosen from the list to be chosen according to the target random number seed
It is further comprising the steps of after the step of marking information:
Receive the inquiry request that inquiry terminal is initiated, wherein the inquiry request includes information to be checked;
The information to be checked is compared with the target information, obtains the selection result of information to be checked;
The selection result is back to the inquiry terminal.
A kind of selecting device of target information, including:
Participate in the election of request receiving module, the participation in the election for receiving breath to be selected of winning the confidence is asked, wherein the participation in the election ask include
The identification strings of win the confidence breath and the participation in the election request to be selected;
Breath preserving module to be selected of winning the confidence, for be selected being taken described in information preservation to list to be chosen;
Random number seed acquisition module, it is random for generating target according to original random number seed and the identification strings
Several sons;
Target information chooses module, for choosing target from the list to be chosen according to the target random number seed
Information.
The random number seed acquisition module in one of the embodiments, was additionally operable within the default participation in the election registration period,
The target random seed is saved as into original random seed.
A kind of computer equipment, including memory and processor, the memory are stored with computer program, the processing
Device realizes following steps when executing the computer program:
Receive the participation in the election request of breath to be selected of winning the confidence, wherein the participation in the election request includes breath and the institute to be selected of winning the confidence
State the identification strings of participation in the election request;
It to be selected is taken described in information preservation to list to be chosen;
Target random number seed is generated according to original random number seed and the identification strings;
According to the target random number seed target information is chosen from the list to be chosen.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor
Following steps are realized when row:
Receive the participation in the election request of breath to be selected of winning the confidence, wherein the participation in the election request includes breath and the institute to be selected of winning the confidence
State the identification strings of participation in the election request;
It to be selected is taken described in information preservation to list to be chosen;
Target random number seed is generated according to original random number seed and the identification strings;
According to the target random number seed target information is chosen from the list to be chosen.
Choosing method, device, computer equipment and the storage medium of above-mentioned target information, in the ginseng for receiving breath to be selected of winning the confidence
After choosing request, taken to be selected in information preservation to list to be chosen, according to target random number seed from the list to be chosen
Target information is chosen, and target random number seed is by the mark character asked of participating in the election of of original random number seed and breath to be selected of winning the confidence
String is common to be generated, that is to say, that the update of target random number seed is related with all participation in the election requests for breath of winning the confidence to be selected, no longer
Target random number seed is determined by a small number of information, greatly improves the randomness of target random number seed, reduces any Human disturbance
The randomness of the possibility of the number of shaking result, the target information chosen according to target random number seed also greatly increases, and improves target
The fairness that information is chosen.
Description of the drawings
Fig. 1 is the applied environment figure of the choosing method of target information in one embodiment of the invention;
Fig. 2 is the flow chart of the choosing method of target information in one embodiment of the invention;
Fig. 3 is the flow chart of the choosing method of target information in another embodiment of the present invention;
Fig. 4 is the flow chart of the automotive license plate number of shaking in one embodiment of the invention;
Fig. 5 is the structure diagram of the selecting device of target information in one embodiment of the invention;
Fig. 6 is the structure diagram of the selecting device of target information in another embodiment of the present invention;
Fig. 7 is the internal structure chart of one embodiment Computer equipment.
Specific implementation mode
It is with reference to the accompanying drawings and embodiments, right in order to make the object, technical solution and advantage of the application be more clearly understood
The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not
For limiting the application.
The choosing method of target information provided by the present application can pass through block chain intelligence contract in one embodiment
Point mode is realized.
In application environment as shown in Figure 1.Wherein, terminal 110 is led to by network and server 120 by network
Letter.Wherein, user can be asked by the participation in the election for the breath to be selected of winning the confidence that terminal 110 is initiated to server 120, and server will wait joining
It selects in information preservation to list to be participated in the election of, and target random number is generated according to the identification strings in participation in the election request, then utilize
The target random number chooses target information from list to be participated in the election of.Wherein, terminal 110 can be, but not limited to be various individual calculus
Machine, laptop, smart mobile phone, tablet computer and portable wearable device, server 120 can use independent server
The either server cluster of multiple servers composition is realized.
Referring to Fig. 2, Fig. 2 is the flow chart of the choosing method of target information in one embodiment of the invention, in this implementation, mesh
The choosing method for marking information, includes the following steps:
Step S210:Receive the participation in the election request of breath to be selected of winning the confidence, wherein participation in the election request includes breath and the ginseng to be selected of winning the confidence
Select the identification strings of request.
In this step, breath to be selected of winning the confidence can refer to a certain user information, can also be times for referring to and being randomly selected
Meaning data information, the identification strings for request of participating in the election of can be the initiation time of participation in the election request, can also be participation in the election request initiation
Network address information.After server reception initiates participation in the election request by breath to be selected of winning the confidence, and obtain breath to be selected of winning the confidence therein
And identification strings.
Step S220:It is taken to be selected in information preservation to list to be chosen.
In this step, breath to be selected of winning the confidence, which is saved in, after server receives participation in the election request, during participation in the election is asked waits choosing row
In table.
Step S230:Target random number seed is generated according to original random number seed and identification strings.
In this step, original random seed can be a certain random value obtained in advance, can also be pre-set solid
Definite value;Original random seed and identification strings are subjected to operation, such as sum operation, multiplication operation or complementation operation etc.,
Target random number seed is generated further according to the operation result.
For example, can sum operation be carried out for original random seed and identification strings, will add up gained and as Kazakhstan
Uncommon element, to addition gained and progress Hash operation, the cryptographic Hash of gained is as target random number seed.
Step S240:According to target random number seed target information is chosen from list to be chosen.
In the choosing method of above-mentioned target information, target random number seed is by original random number seed and breath to be selected of winning the confidence
The identification strings of participation in the election request generate jointly, that is to say, that the update of target random number seed and all breaths to be selected of winning the confidence
Participation in the election request it is related, no longer determine target random number seed by a small number of information, greatly improve the random of target random number seed
Property, it is also greatly increased according to the randomness of the target information of target random number seed selection, improves the justice that target information is chosen
Property.
It is described random according to original random number seed and identification strings generation target in one of the embodiments,
It is further comprising the steps of after the step of several sons:Within the default participation in the election registration period, target random seed is saved as original
Random seed, and the step of jumping to the participation in the election request for receiving breath to be selected of winning the confidence.
In the present embodiment, within the default participation in the election registration period, the initiation time of the participation in the election request of breath to be selected of winning the confidence is different
, so participation in the election request has sequencing.By original random number seed and server, this receives obtained identifier word
The target random number seed concatenated is accorded with, as the original random number seed of target random number seed generating process next time, with
Identification strings in the participation in the election request that server receives next time generate target random number seed, preset participation in the election registration week
After phase, the target random number seed finally obtained is as final target random number seed.In the default participation in the election registration period
Interior, with the initiation of the participation in the election request of breath to be selected of winning the confidence, target random number seed is constantly updated, each time target random number seed
Update it is related with all participation in the election requests for breath of winning the confidence to be selected, no longer determine target random number seed by a few peoples, carry significantly
The randomness of the randomness of high target random number seed, the target information chosen according to target random number seed also greatly increases,
Improve the fairness that target information is chosen.
To after the step to be selected that taken in information preservation to list to be chosen, further include in one of the embodiments, with
Lower step:Generate the application number of breath to be selected of winning the confidence;Target information is chosen from list to be chosen according to target random number seed
Step includes the following steps:Using target random number seed initializing pseudo random number generator, the application from list to be chosen
Number screening choose target application number;Target information is determined according to target application number.
In the present embodiment, an application number is corresponding with a breath to be selected of winning the confidence, and could be provided as by the number of fixed digit
Composition.In view of breath to be selected of winning the confidence is sometimes the larger data information of data volume, the process side of target information selection can be caused
It is long, cause efficiency to substantially reduce, so while breath to be selected of winning the confidence is saved in list to be chosen, generates and breath pair to be selected of winning the confidence
The application number answered;After obtaining the target random number seed ultimately produced, with the target random number seed initializing pseudo random
Number generator filters out target application number as information is selected in all application numbers of list to be chosen, and then obtains target
The corresponding breath to be selected of winning the confidence of application number screens target Shen by pseudorandom number generator as target information in all application numbers
Please number, operand can be effectively reduced, improve the selection rate of target information, improve efficiency.
In order to be more clear technical solution of the present invention, the choosing of the target information of the present invention is used with reference to block chain technology
Method is taken to be expanded on further.It is the flow chart of the choosing method of target information in another embodiment of the present invention referring to Fig. 3, Fig. 3.
In the present embodiment, the choosing method of target information includes the following steps:
Step S310:Receive the participation in the election request of breath to be selected of winning the confidence, wherein participation in the election request includes breath and the ginseng to be selected of winning the confidence
Select the identification strings of request.
In this step, breath to be selected of winning the confidence can refer to a certain user information, and the identification strings for request of participating in the election of are set as joining
Select the initiation time of request.Server receives participation in the election request is initiated by breath to be selected of winning the confidence after, and obtain therein to be selected win the confidence
Breath and identification strings.
Step S320:It is taken to be selected in information preservation to list to be chosen, generates the application number of breath to be selected of winning the confidence.
Step S330:Target random number seed is generated according to original random number seed and identification strings.
Step S340:Whether the detection default participation in the election registration period terminates, if the default participation in the election registration period has terminated, jumps to
Target random seed is saved as original random seed, and jump to by step S350 if the default participation in the election registration period is also not finished
Step S310.
Step S350:Using target random number seed initializing pseudo random number generator, the application from list to be chosen
Number screening choose target application number.
Step S360:Target information is determined according to target application number.
Specifically, a certain user identity initiates participation in the election request, the participation in the election by public key address on the chain node device of region
Include user information such as public key address in request, and the time is initiated in participation in the election request, block chain node device is by user information
And the data such as time are initiated in participation in the election request, are realized by way of issuing " transaction " (Transaction) to block chain network
Data are written to region chain.The detailed process that data are written to region chain is as follows:Within the default participation in the election registration period, whenever useful
When family identity initiates participation in the election request, user information is recorded into list to be chosen, and generates the corresponding unique application number of threshold value;
And request of participating in the election of initiates the time with original random number seed collectively as Hash element progress Hash operation, the cryptographic Hash of acquisition is made
For target random number seed and it is recorded into new block, is then published to block chain network, is tested by other block chain node devices
After card passes through and receives, which is written into block chain, and the target random number seed is also used as next time
The original random number seed of Hash operation.After the default participation in the election registration period, using the target random number seed finally obtained as most
Whole target random number seed.It is initial with the target random number seed after obtaining the target random number seed ultimately produced
Change pseudorandom number generator and filters out target application number in all application numbers of list to be chosen as information is selected, then
The corresponding breath to be selected of winning the confidence of target application number is obtained as target information.
The present embodiment realizes the selection of target information by way of the intelligent contract in block chain, in default participation in the election registration
In period, with the initiation of the participation in the election request of breath to be selected of winning the confidence, target random number seed is constantly updated, each time target random number
The update of seed is related with all participation in the election requests for breath of winning the confidence to be selected, no longer determines target random number seed by a few peoples, greatly
The big randomness for improving target random number seed, moreover, during the selection of target information, all breaths to be selected of winning the confidence, target with
Data are all disclosed for renewal process, target information of the several sons of machine etc., can not distort, and further increase target information selection
Fairness.
It is further comprising the steps of before the step of receiving the participation in the election request of breath to be selected of winning the confidence in one of the embodiments,:
Receive the registration request that registration terminal is initiated, wherein registration request includes first identifier information and second identifier information;According to
First identifier information and second identifier information generate breath to be selected of winning the confidence.
In the present embodiment, registration terminal can be, but not limited to be various personal computers, laptop, smart mobile phone,
Tablet computer and portable wearable device;First identifier information and second identifier information can be breath to be selected of winning the confidence respectively
Different a certain attribute values, such as the first identifier information of breath to be selected of winning the confidence, registion time information etc..Server receives registration and asks
It asks, according to the first identifier information and second identifier information generation breath to be selected of winning the confidence in registration request, realizes breath to be selected of winning the confidence
It is associated with the binding of first identifier information and second identifier information, first identifier information or second identifier information is avoided to repeat
Breath to be selected of winning the confidence is registered, ensures the uniqueness between first identifier information and second identifier information, target information is improved and chooses
Fairness.
For example, participant initiates registration request by terminal to server, corporally according to the participant in registration request
Location information and identity information generate the corresponding breath to be selected of winning the confidence of user, realize that the breath to be selected of winning the confidence is believed with participant individual address
Breath and subscriber identity information are bound one by one, and participant is avoided to carry out the registration of breath to be selected of winning the confidence in turn using multiple address informations
The selection that target information is participated in using multiple breaths to be selected of winning the confidence, ensures the uniqueness for the breath to be selected of winning the confidence that participant uses with it,
Improve the fairness that target information is chosen.
In one of the embodiments, by the step to be selected taken in information preservation to list to be chosen, include the following steps:
It treats the first identifier information for choosing information and second identifier information is verified, verification includes first identifier information and the
The uniqueness verification of two identification informations, at least one of the legitimate verification of first identifier information and second identifier information;If
The first identifier information and second identifier information of breath to be selected of winning the confidence take information preservation to list to be chosen by verification by be selected
In.
In the present embodiment, after server receives the participation in the election request of breath to be selected of winning the confidence, the first identifier for choosing information is treated
Information and second identifier information are verified, if by verification, which is saved in list to be chosen, if
It is not verified, then ignore the participation in the election request of the breath to be selected of winning the confidence.Multiple conditions can be specifically verified in verification, when multiple
Part is verified when setting up.
First identifier information and second identifier information are verified, can specifically be checked for and first identifier
Information and other identical breaths to be selected of winning the confidence of second identifier information can also check first identifier information and second identifier letter
Whether the form of breath meets preset format.By verifying identification information, avoid invalid to be selected taking information preservation to waiting for
Choose list in and first identifier information or second identifier information repeated registration it is to be selected win the confidence breath the case where, ensure first
Uniqueness between identification information and second identifier information improves the fairness that target information is chosen.
Optionally, it is generated in one of the embodiments, according to first identifier information and second identifier information and waits choosing
It is further comprising the steps of after the step of information:It treats the first identifier information for choosing information and second identifier information carries out
Verification;If the first identifier information and second identifier information of breath to be selected of winning the confidence by verification, by it is to be selected take information preservation to examine
In core list;It treats the first identifier information for choosing information and second identifier information is verified;If the of breath to be selected of winning the confidence
One identification information and second identifier information are by verification, by the step to be selected taken in information preservation to list to be chosen, including
Following steps:Breath to be selected of winning the confidence is detected whether in auditing list;If breath to be selected of winning the confidence is in auditing list, by breath to be selected of winning the confidence
It is saved in list to be chosen.
The step of choosing target information from list to be chosen according to target random number seed in one of the embodiments,
Later, further comprising the steps of:Receive the inquiry request that inquiry terminal is initiated, wherein inquiry request includes information to be checked;It will
Information to be checked is compared with target information, obtains the selection result of information to be checked;Result will be chosen and be back to inquiry eventually
End.
In the present embodiment, it is the same terminal device that inquiry terminal, which can be with registration terminal, can be, but not limited to be each
Kind personal computer, laptop, smart mobile phone, tablet computer and portable wearable device;Server obtains band and needs
After the inquiry request of Query Information, information to be checked is compared with target information, if comparing result is consistent, this is to be checked
The selection result for asking information is to be chosen for target information, if comparing result is inconsistent, the selection result of the information to be checked
For it is unselected be target information;The selection result of acquisition is back to inquiry terminal.
The choosing method of the target information of the present invention is applied to the automotive license plate number of shaking to technical scheme of the present invention below
It is expanded on further.It is the flow chart of the automotive license plate number of shaking in one embodiment of the invention referring to Fig. 4, Fig. 4, the automotive license plate number of shaking
Flow chart includes the following steps:
Step S410:The user for having the number of shaking qualification initiates registration request by registration terminal to server, and registration is personal
The number of shaking account, wherein registration request includes the personal address information and identity information of user.
In this step, the user for having the number of shaking qualification completes the individual's number of shaking account using personal address information and identity information
Number, realize the binding of personal address and identity information.
Step S420:Server carries out qualification examination to the individual's number of shaking account, if qualification examination passes through, by the individual's number of shaking account
Number preserve to audit user list.
In this step, server carries out qualification examination to the individual's number of shaking account, realizes individual's number of shaking account and participant
People's address information and subscriber identity information are bound one by one, are avoided user from carrying out the individual's number of shaking account using multiple address informations and are noted
Volume uses multiple individual's number of shaking accounts to participate in the number-plate number number of shaking in turn.
Step S430:Within the preset registration phase, the user for having the number of shaking qualification utilizes registered individual's number of shaking account
Participation in the election request is initiated by terminal to server.
In this step, each issue of number of shaking all pre-sets the registration phase, and registration is just drawn lots after the phase.Within the registration phase,
The user for having the number of shaking qualification initiates participation in the election request using registered individual's number of shaking account.
Step S440:Server carries out qualification examination to the individual's number of shaking account, when individual's number of shaking account is in audit user's row
In table, the individual's number of shaking account is added in participation in the election user list by server.
In this step, individual's number of the shaking account only audited in user list can be just preserved by server to the participation in the election of current period
In user list, to complete to register, waits for and drawing lots.
Step S450:Whenever having the individual's number of shaking account to initiate participation in the election request, the initiation time for request of participating in the election of will be with upper one
Secondary random number seed is cooperatively used as Hash element, calculates new random number seed.
In this step, final random number seed and all participants are related, are no longer determined by a few peoples random several
Son.The random seed codetermined by owner is to ensure fair one ring of most critical.
Step S460:After the registration phase, the random number seed initializing pseudo random number that server by utilizing ultimately produces is sent out
Raw device, the individual's number of the shaking account signed in being selected in user list of participating in the election of.
Step S470:Have the user of the number of shaking qualification with individual's number of shaking account by inquiring terminal, is looked into server initiation
Request is ask, server compares individual's number of shaking account to be checked and the individual's number of shaking account of middle label, and result is signed in return
To inquiry terminal.
In this step, user need to confirm oneself whether in label when, whether inquiry request acknowledgment of your inquiry is initiated by terminal
Middle label.
Further, above-mentioned steps process realizes the automotive license plate number of shaking by way of the intelligent contract in block chain,
Wherein, intelligent contract can allow manager the operations such as to increase, delete, call to audit user list, careful in contract to safeguard
Core user list, intelligent contract can also realize the setting etc. of registration phase.In the number of the shaking system based on block chain, owner is
It can check audit user list, to know whom have can participate in the number of shaking, and middle label user information, the entire number of shaking process are all
It is to receive proprietary supervision disclosed in whole process.The automotive license plate number of shaking is realized by block chain technology, is realized to the number of shaking result
Full-automation, transparence, ensure that the generating process of random number seed reaches open and clear and randomness greatly improves, no longer by
A small number of information determine random number seed, and the randomness of the middle label user chosen according to random number seed also greatly increases, and improve
The fairness that target information is chosen.
It should be understood that although each step in the flow chart of Fig. 2 to 4 is shown successively according to the instruction of arrow,
Be these steps it is not that the inevitable sequence indicated according to arrow executes successively.Unless expressly stating otherwise herein, these steps
There is no stringent sequences to limit for rapid execution, these steps can execute in other order.Moreover, in Fig. 2 to 4 at least
A part of step may include that either these sub-steps of multiple stages or stage are not necessarily in same a period of time to multiple sub-steps
Quarter executes completion, but can execute at different times, the execution in these sub-steps or stage be sequentially also not necessarily according to
Secondary progress, but can either the sub-step of other steps or at least part in stage in turn or replace with other steps
Ground executes.
According to the choosing method of above-mentioned target information, the present invention also provides the selecting devices of target information, below with regard to this hair
The embodiment of the selecting device of bright target information is described in detail.
It is the structural schematic diagram of the selecting device of target information in one embodiment of the invention referring to Fig. 5, Fig. 5;A kind of mesh
The selecting device of information is marked, including:
Participate in the election of request receiving module 510, for receive breath to be selected of winning the confidence participation in the election ask, wherein participation in the election request include
The identification strings of win the confidence breath and participation in the election request to be selected;
Breath preserving module 520 to be selected of winning the confidence, for being taken to be selected in information preservation to list to be chosen;
Random number seed acquisition module 530, it is random for generating target according to original random number seed and identification strings
Several sons;
Target information chooses module 540, for choosing target information from list to be chosen according to target random number seed.
In the selecting device of above-mentioned target information, the participation in the election of the update and all breaths to be selected of winning the confidence of target random number seed
It asks related, no longer determines target random number seed by a small number of information, greatly improve the randomness of target random number seed, according to
The randomness for the target information that target random number seed is chosen also greatly increases, and improves the fairness that target information is chosen.
Random number seed acquisition module 530 in one of the embodiments, was additionally operable within the default participation in the election registration period,
Target random seed is saved as into original random seed, and the selecting device of target information is made to execute participation in the election request receiving module
510。
Breath preserving module 520 to be selected of winning the confidence is additionally operable to generate the application number of breath to be selected of winning the confidence in one of the embodiments,;
Target information chooses module 540 and is used to utilize target random number seed initializing pseudo random number generator, from list to be chosen
Application number screening choose target application number;Target information is determined according to target application number.
It is the structural schematic diagram of the selecting device of target information in one embodiment of the invention referring to Fig. 6, Fig. 6;In this reality
It applies in example, the selecting device of target information further includes breath registration module 550 to be selected of winning the confidence, breath registration module 550 use to be selected of winning the confidence
In reception registration request, wherein registration request includes first identifier information and second identifier information;According to first identifier information
And second identifier information generates breath to be selected of winning the confidence.
Breath preserving module 520 to be selected of winning the confidence is for treating the first identifier letter for choosing information in one of the embodiments,
Breath and second identifier information are verified, verification include the uniqueness of first identifier information and second identifier information verify,
At least one of the legitimate verification of first identifier information and second identifier information;If the first identifier information of breath to be selected of winning the confidence
And second identifier information is taken to be selected in information preservation to list to be chosen by verification.
The specific of selecting device about target information limits the choosing method that may refer to above for target information
Restriction, details are not described herein.Modules in the selecting device of above-mentioned target information can be fully or partially through software, hard
Part and combinations thereof is realized.Above-mentioned each module can be embedded in or in the form of hardware independently of in the processor in computer equipment,
It can also in a software form be stored in the memory in computer equipment, the above modules are executed in order to which processor calls
Corresponding operation.
In one embodiment, a kind of computer equipment is provided, which can be server, internal junction
Composition can be as shown in Figure 7.The computer equipment include the processor connected by system bus, memory, network interface and
Database.Wherein, the processor of the computer equipment is for providing calculating and control ability.The memory packet of the computer equipment
Include non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system, computer program and data
Library.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating
The database of machine equipment be used to store breath to be selected of winning the confidence, participation in the election request the data such as identification strings.The net of the computer equipment
Network interface is used to communicate by network connection with external terminal.To realize a kind of mesh when the computer program is executed by processor
Mark the choosing method of information.
It will be understood by those skilled in the art that structure shown in Fig. 7, is only tied with the relevant part of application scheme
The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific computer equipment
May include either combining certain components than more or fewer components as shown in the figure or being arranged with different components.
A kind of computer equipment, including memory and processor are provided in one of the embodiments, are deposited in memory
Computer program is contained, which realizes following steps when executing computer program:
Receive the participation in the election request of breath to be selected of winning the confidence, wherein participation in the election request includes win the confidence breath and participation in the election request to be selected
Identification strings;
It is taken to be selected in information preservation to list to be chosen;
Target random number seed is generated according to original random number seed and identification strings;
According to target random number seed target information is chosen from list to be chosen.
Following steps are also realized when processor executes computer program in one of the embodiments,:In default participation in the election report
In the name period, target random seed is saved as into original random seed, and jumps to the participation in the election request for receiving breath to be selected of winning the confidence
Step.
Following steps are also realized when processor executes computer program in one of the embodiments,:Generate to be selected win the confidence
The application number of breath;Using target random number seed initializing pseudo random number generator, from the application number screening in list to be chosen
Choose target application number;Target information is determined according to target application number.
Following steps are also realized when processor executes computer program in one of the embodiments,:Receive registration terminal
The registration request of initiation, wherein registration request includes first identifier information and second identifier information;According to first identifier information
And second identifier information generates breath to be selected of winning the confidence.
Following steps are also realized when processor executes computer program in one of the embodiments,:Treat selection information
First identifier information and second identifier information verified, verification include first identifier information and second identifier information
Uniqueness verification, first identifier information and second identifier information at least one of legitimate verification;If breath to be selected of winning the confidence
First identifier information and second identifier information are taken to be selected in information preservation to list to be chosen by verification.
Following steps are also realized when processor executes computer program in one of the embodiments,:Receive inquiry terminal
The inquiry request of initiation, wherein inquiry request includes information to be checked;Information to be checked is compared with target information, is obtained
Obtain the selection result of information to be checked;Result will be chosen and be back to inquiry terminal.
A kind of computer readable storage medium is provided in one of the embodiments, is stored thereon with computer program,
Following steps are realized when computer program is executed by processor:
Receive the participation in the election request of breath to be selected of winning the confidence, wherein participation in the election request includes win the confidence breath and participation in the election request to be selected
Identification strings;
It is taken to be selected in information preservation to list to be chosen;
Target random number seed is generated according to original random number seed and identification strings;
According to target random number seed target information is chosen from list to be chosen.
Following steps are also realized when computer program is executed by processor in one of the embodiments,:In default participation in the election
It registers in the period, target random seed is saved as into original random seed, and jump to the participation in the election request for receiving breath to be selected of winning the confidence
The step of.
Following steps are also realized when computer program is executed by processor in one of the embodiments,:It generates and waits choosing
The application number of information;Using target random number seed initializing pseudo random number generator, from the application number sieve in list to be chosen
Target application number is chosen in choosing;Target information is determined according to target application number.
Following steps are also realized when computer program is executed by processor in one of the embodiments,:Receive registration eventually
Hold the registration request initiated, wherein registration request includes first identifier information and second identifier information;Believed according to first identifier
Breath and second identifier information generate breath to be selected of winning the confidence.
Following steps are also realized when computer program is executed by processor in one of the embodiments,:Treat selection letter
The first identifier information and second identifier information of breath are verified, and verification includes first identifier information and second identifier information
Uniqueness verification, first identifier information and second identifier information at least one of legitimate verification;If breath to be selected of winning the confidence
First identifier information and second identifier information by verification, taken to be selected in information preservation to list to be chosen.
Following steps are also realized when computer program is executed by processor in one of the embodiments,:Receive inquiry eventually
Hold the inquiry request initiated, wherein inquiry request includes information to be checked;Information to be checked is compared with target information,
Obtain the selection result of information to be checked;Result will be chosen and be back to inquiry terminal.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer
In read/write memory medium, the computer program is when being executed, it may include such as the flow of the embodiment of above-mentioned each method.Wherein,
Any reference to memory, storage, database or other media used in each embodiment provided herein,
Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM
(PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include
Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms,
Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing
Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM
(RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above example can be combined arbitrarily, to keep description succinct, not to above-described embodiment
In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance
Shield is all considered to be the range of this specification record.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously
It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art
It says, under the premise of not departing from the application design, various modifications and improvements can be made, these belong to the protection of the application
Range.Therefore, the protection domain of the application patent should be determined by the appended claims.
Claims (10)
1. a kind of choosing method of target information, which is characterized in that include the following steps:
Receive the participation in the election request of breath to be selected of winning the confidence, wherein the participation in the election request includes breath and the ginseng to be selected of winning the confidence
Select the identification strings of request;
It to be selected is taken described in information preservation to list to be chosen;
Target random number seed is generated according to original random number seed and the identification strings;
According to the target random number seed target information is chosen from the list to be chosen.
2. the choosing method of target information according to claim 1, which is characterized in that described according to original random number seed
It is further comprising the steps of after the step of generating target random number seed with the identification strings:
Within the default participation in the election registration period, the target random seed is saved as into original random seed, and jump to reception and wait for
The step of choosing the participation in the election request of information.
3. the choosing method of target information according to claim 1 or 2, which is characterized in that described to be selected to win the confidence described
Breath is preserved to the step in list to be chosen, further comprising the steps of:
Generate the application number of the breath to be selected of winning the confidence;
Described the step of target information is chosen from the list to be chosen according to the target random number seed, including following step
Suddenly:
Using the target random number seed initializing pseudo random number generator, from the application number screening in the list to be chosen
Choose target application number;
Target information is determined according to the target application number.
4. the choosing method of target information according to claim 1 or 2, which is characterized in that described to receive breath to be selected of winning the confidence
Participation in the election request the step of before, it is further comprising the steps of:
Receive the registration request that registration terminal is initiated, wherein the registration request includes first identifier information and second identifier
Information;
Breath to be selected of winning the confidence is generated according to the first identifier information and second identifier information.
5. the choosing method of target information according to claim 4, which is characterized in that described to protect the breath to be selected of winning the confidence
It deposits to the step in list to be chosen, includes the following steps:
The first identifier information and the second identifier information of the breath to be selected of winning the confidence are verified, the verification packet
Include the uniqueness verification of the first identifier information and the second identifier information, the first identifier information and described the
At least one of the legitimate verification of two identification informations;
If the first identifier information and second identifier information of the breath to be selected of winning the confidence are protected the breath to be selected of winning the confidence by verification
It deposits into list to be chosen.
6. the choosing method of target information according to claim 1 or 2, which is characterized in that it is described according to the target with
The several sons of machine are further comprising the steps of after the step of choosing target information in the list to be chosen:
Receive the inquiry request that inquiry terminal is initiated, wherein the inquiry request includes information to be checked;
The information to be checked is compared with the target information, obtains the selection result of information to be checked;
The selection result is back to the inquiry terminal.
7. a kind of selecting device of target information, which is characterized in that including:
Participation in the election request receiving module, the participation in the election for receiving breath to be selected of winning the confidence are asked, wherein the participation in the election request includes described
The identification strings of win the confidence breath and the participation in the election request to be selected;
Breath preserving module to be selected of winning the confidence, for be selected being taken described in information preservation to list to be chosen;
Random number seed acquisition module, it is several at random for generating target according to original random number seed and the identification strings
Son;
Target information chooses module, for choosing target letter from the list to be chosen according to the target random number seed
Breath.
8. the selecting device of target information according to claim 7, which is characterized in that the random number seed obtains mould
Block is additionally operable within the default participation in the election registration period, the target random seed is saved as original random seed.
9. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists
In the processor realizes the selection of target information according to any one of claims 1 to 6 when executing the computer program
The step of method.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
The step of choosing method of target information according to any one of claims 1 to 6 is realized when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810443865.3A CN108648323B (en) | 2018-05-10 | 2018-05-10 | Target information selection method and device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810443865.3A CN108648323B (en) | 2018-05-10 | 2018-05-10 | Target information selection method and device, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108648323A true CN108648323A (en) | 2018-10-12 |
CN108648323B CN108648323B (en) | 2021-02-19 |
Family
ID=63754424
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810443865.3A Active CN108648323B (en) | 2018-05-10 | 2018-05-10 | Target information selection method and device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108648323B (en) |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109583892A (en) * | 2018-11-21 | 2019-04-05 | 安徽高山科技有限公司 | A kind of random number selecting method in block chain |
CN109584432A (en) * | 2018-10-26 | 2019-04-05 | 阿里巴巴集团控股有限公司 | Object select method and device, electronic equipment |
CN109615370A (en) * | 2018-10-25 | 2019-04-12 | 阿里巴巴集团控股有限公司 | Object select method and device, electronic equipment |
CN109671206A (en) * | 2018-12-03 | 2019-04-23 | 广东工业大学 | A kind of method, apparatus, equipment and the storage medium of random determining terminal |
CN109767271A (en) * | 2019-01-18 | 2019-05-17 | 众安信息技术服务有限公司 | Lottery drawing method and equipment based on block chain |
CN109801131A (en) * | 2019-01-07 | 2019-05-24 | 上海京信信息科技有限公司 | Credit system data processing method and credit system data processing system |
CN109961550A (en) * | 2019-03-29 | 2019-07-02 | 北京金山安全软件有限公司 | Method and device for determining random number in block chain, electronic equipment and storage medium |
CN110180188A (en) * | 2019-05-22 | 2019-08-30 | 杭州复杂美科技有限公司 | Playing card dealing method, method for gaming, equipment and storage medium |
CN110310097A (en) * | 2019-07-05 | 2019-10-08 | 匿名科技(重庆)集团有限公司 | A kind of public affairs of intelligence contract are rented a house the credible number of shaking method |
CN110990790A (en) * | 2019-11-29 | 2020-04-10 | 腾讯科技(深圳)有限公司 | Data processing method and equipment |
CN111176918A (en) * | 2019-12-28 | 2020-05-19 | 苏州浪潮智能科技有限公司 | Server testing method, system, equipment and computer readable storage medium |
CN111599079A (en) * | 2020-04-21 | 2020-08-28 | 深圳市芯链科技有限公司 | Block chain shaking method, device, equipment and storage medium |
CN112235251A (en) * | 2020-09-21 | 2021-01-15 | 建信金融科技有限责任公司 | Block chain management method and device, computer equipment and storage medium |
CN115083062A (en) * | 2022-07-22 | 2022-09-20 | 阿里健康科技(杭州)有限公司 | Information processing method, information transmitting method, computer device, and storage medium |
CN115376239A (en) * | 2022-08-23 | 2022-11-22 | 北京女娲补天科技信息技术有限公司 | Method, device and system for registering and shaking number, computer equipment and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102194271A (en) * | 2010-03-16 | 2011-09-21 | 李代甫 | Method, device and application for computer numerical selection |
CN105976248A (en) * | 2016-04-29 | 2016-09-28 | 邓迪 | Crowd funding lotting method and system |
CN106972926A (en) * | 2017-03-29 | 2017-07-21 | 北京经纬恒润科技有限公司 | A kind of encrypting and decrypting method, the apparatus and system of wireless automobile key |
US20170357496A1 (en) * | 2016-06-12 | 2017-12-14 | Intel Corporation | Technologies for secure software update using bundles and merkle signatures |
US20170371623A1 (en) * | 2011-05-27 | 2017-12-28 | Cassy Holdings Llc | Stochastic processing |
CN107820690A (en) * | 2017-08-21 | 2018-03-20 | 达闼科技成都有限公司 | Information choosing method, device, electronic equipment and computer-readable recording medium |
CN107862782A (en) * | 2017-10-27 | 2018-03-30 | 链家网(北京)科技有限公司 | Drawing method and device based on ether mill block chain |
-
2018
- 2018-05-10 CN CN201810443865.3A patent/CN108648323B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102194271A (en) * | 2010-03-16 | 2011-09-21 | 李代甫 | Method, device and application for computer numerical selection |
US20170371623A1 (en) * | 2011-05-27 | 2017-12-28 | Cassy Holdings Llc | Stochastic processing |
CN105976248A (en) * | 2016-04-29 | 2016-09-28 | 邓迪 | Crowd funding lotting method and system |
US20170357496A1 (en) * | 2016-06-12 | 2017-12-14 | Intel Corporation | Technologies for secure software update using bundles and merkle signatures |
CN106972926A (en) * | 2017-03-29 | 2017-07-21 | 北京经纬恒润科技有限公司 | A kind of encrypting and decrypting method, the apparatus and system of wireless automobile key |
CN107820690A (en) * | 2017-08-21 | 2018-03-20 | 达闼科技成都有限公司 | Information choosing method, device, electronic equipment and computer-readable recording medium |
CN107862782A (en) * | 2017-10-27 | 2018-03-30 | 链家网(北京)科技有限公司 | Drawing method and device based on ether mill block chain |
Cited By (23)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109615370A (en) * | 2018-10-25 | 2019-04-12 | 阿里巴巴集团控股有限公司 | Object select method and device, electronic equipment |
WO2020082873A1 (en) * | 2018-10-25 | 2020-04-30 | 阿里巴巴集团控股有限公司 | Object selection method and device and electronic device |
CN111882745A (en) * | 2018-10-26 | 2020-11-03 | 创新先进技术有限公司 | Object selection method and device and electronic equipment |
CN109584432B (en) * | 2018-10-26 | 2020-06-30 | 阿里巴巴集团控股有限公司 | Object selection method and device and electronic equipment |
CN111882745B (en) * | 2018-10-26 | 2022-12-20 | 创新先进技术有限公司 | Object selection method and device and electronic equipment |
CN109584432A (en) * | 2018-10-26 | 2019-04-05 | 阿里巴巴集团控股有限公司 | Object select method and device, electronic equipment |
WO2020082883A1 (en) * | 2018-10-26 | 2020-04-30 | 阿里巴巴集团控股有限公司 | Object selection method and device and electronic device |
CN109583892A (en) * | 2018-11-21 | 2019-04-05 | 安徽高山科技有限公司 | A kind of random number selecting method in block chain |
CN109671206A (en) * | 2018-12-03 | 2019-04-23 | 广东工业大学 | A kind of method, apparatus, equipment and the storage medium of random determining terminal |
CN109801131A (en) * | 2019-01-07 | 2019-05-24 | 上海京信信息科技有限公司 | Credit system data processing method and credit system data processing system |
CN109767271A (en) * | 2019-01-18 | 2019-05-17 | 众安信息技术服务有限公司 | Lottery drawing method and equipment based on block chain |
CN109961550A (en) * | 2019-03-29 | 2019-07-02 | 北京金山安全软件有限公司 | Method and device for determining random number in block chain, electronic equipment and storage medium |
CN110180188B (en) * | 2019-05-22 | 2022-06-28 | 杭州复杂美科技有限公司 | Card dealing method, game method, device and storage medium |
CN110180188A (en) * | 2019-05-22 | 2019-08-30 | 杭州复杂美科技有限公司 | Playing card dealing method, method for gaming, equipment and storage medium |
CN110310097A (en) * | 2019-07-05 | 2019-10-08 | 匿名科技(重庆)集团有限公司 | A kind of public affairs of intelligence contract are rented a house the credible number of shaking method |
CN110990790A (en) * | 2019-11-29 | 2020-04-10 | 腾讯科技(深圳)有限公司 | Data processing method and equipment |
CN110990790B (en) * | 2019-11-29 | 2022-05-10 | 腾讯科技(深圳)有限公司 | Data processing method and equipment |
CN111176918A (en) * | 2019-12-28 | 2020-05-19 | 苏州浪潮智能科技有限公司 | Server testing method, system, equipment and computer readable storage medium |
CN111599079A (en) * | 2020-04-21 | 2020-08-28 | 深圳市芯链科技有限公司 | Block chain shaking method, device, equipment and storage medium |
CN112235251A (en) * | 2020-09-21 | 2021-01-15 | 建信金融科技有限责任公司 | Block chain management method and device, computer equipment and storage medium |
CN112235251B (en) * | 2020-09-21 | 2022-11-15 | 中国建设银行股份有限公司 | Block chain management method and device, computer equipment and storage medium |
CN115083062A (en) * | 2022-07-22 | 2022-09-20 | 阿里健康科技(杭州)有限公司 | Information processing method, information transmitting method, computer device, and storage medium |
CN115376239A (en) * | 2022-08-23 | 2022-11-22 | 北京女娲补天科技信息技术有限公司 | Method, device and system for registering and shaking number, computer equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108648323B (en) | 2021-02-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108648323A (en) | Choosing method, device, computer equipment and the storage medium of target information | |
CN108182581B (en) | Accounting method and device for block chain | |
JP7210466B2 (en) | Systems and methods for distributing data records using blockchain | |
CN109767271B (en) | Lottery method and equipment based on block chain | |
CN107820690A (en) | Information choosing method, device, electronic equipment and computer-readable recording medium | |
CN112765677A (en) | Block chain-based federal learning method, device and system | |
CN113283905A (en) | Data storage and acquisition method and device based on block chain | |
CN109598504A (en) | Transaction processing method and device, electronic equipment based on block chain | |
CN109598598A (en) | Transaction processing method and device, electronic equipment based on block chain | |
CN109584432A (en) | Object select method and device, electronic equipment | |
CN109767240A (en) | Cloud customer service distribution method, device, computer equipment and storage medium | |
CN105868970B (en) | authentication method and electronic equipment | |
CN111738405B (en) | User-level member reasoning method based on generation of countermeasure network | |
US20140351303A1 (en) | Apparatus and method for acquiring noise source entropy for random number generator | |
CN107147629A (en) | A kind of short-message verification method, equipment and storage medium | |
WO2020061822A1 (en) | Method and system for arbitrating authenticity of data in a blockchain | |
CN107948177B (en) | Method and device for generating verification questionnaire | |
CN112333217B (en) | Joint recommendation method and system based on block chain | |
CN113065748A (en) | Business risk assessment method, device, equipment and storage medium | |
CN112422570B (en) | Game login method and device | |
CN109636935A (en) | Personnel register method, apparatus and storage medium | |
CN109710692A (en) | User information processing method and device in block chain network and storage medium | |
CN109698750A (en) | Block generation method, device, equipment and the readable storage medium storing program for executing of block chain | |
CN108306937A (en) | Sending method, acquisition methods, server and the storage medium of short message verification code | |
CN111784393A (en) | Electronic ticket issuing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |