rand 4
This commit is contained in:
@@ -1098,11 +1098,18 @@ long WrenchResetMemberPass(CVars in, CVars &out) {
|
|||||||
member_id = yy["member_id"].Long();
|
member_id = yy["member_id"].Long();
|
||||||
}
|
}
|
||||||
|
|
||||||
int r1, r2, r3;
|
int r1;
|
||||||
char reset_pin[10];
|
char reset_pin[10];
|
||||||
srand(time(NULL));
|
// srand(time(NULL));
|
||||||
r1 = abs(rand()*100);
|
// r1 = abs(rand()*100);
|
||||||
sprintf(reset_pin, "%d", r1);
|
// sprintf(reset_pin, "%d", r1);
|
||||||
|
|
||||||
|
for (i = 1; i <5; i++)
|
||||||
|
{
|
||||||
|
srand(time(NULL));
|
||||||
|
r1 = abs(rand());
|
||||||
|
sprintf(reset_pin, "%d", r1);
|
||||||
|
}
|
||||||
|
|
||||||
CVars xx;
|
CVars xx;
|
||||||
if (member_id > 0) {
|
if (member_id > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user