Previous process: 1. The service end sends 100 random numbers to the client. 2. The C ++ client then performs user operations and sends user operations to the server. 3. The server can reproduce the client user operation results based on the random number sent to the client and some parameters sent from the client... previous process:
1,The service end sends 100 random numbers to the client.
2. The C ++ client then performs user operations and sends user operations to the server.
3. The server can reproduce the client user operation results based on the random number sent to the client and some parameters sent from the client.
Hope the server can
1. Give one or several strings. The client and server use the same method to calculate 100 identical random numbers.
2. Different random numbers are generated for the same string at different times.
Reply content:
Previous process:
1,The service end sends 100 random numbers to the client.
2. The C ++ client then performs user operations and sends user operations to the server.
3. The server can reproduce the client user operation results based on the random number sent to the client and some parameters sent from the client.
Hope the server can
1. Give one or several strings. The client and server use the same method to calculate 100 identical random numbers.
2. Different random numbers are generated for the same string at different times.
First, connect the string to the timestamp, hash it, and then convert and split it according to the random number type you requested. However, this is not a random number.
This is calculated based on a certain algorithm. Because your seed is added with a timestamp, the numbers generated at different times are different.