This commit is contained in:
CHIEFSOFT\ameye
2023-08-04 17:19:39 -04:00
parent a8f25842b5
commit 1d67f0096b
+10 -8
View File
@@ -1100,16 +1100,18 @@ long WrenchResetMemberPass(CVars in, CVars &out) {
int r1, i;
char reset_pin[10];
// srand(time(NULL));
// r1 = abs(rand()*100);
srand(time(NULL));
r1 = abs(rand()*1000);
// sprintf(reset_pin, "%d", r1);
for (i = 1; i <5; i++)
{
srand(time(NULL));
r1 = abs(rand());
sprintf(reset_pin, "%d", r1);
}
snprintf(reset_pin, sizeof (reset_pin), "%d", r1);
// for (i = 1; i <5; i++)
// {
// srand(time(NULL));
// r1 = abs(rand());
// sprintf(reset_pin, "%d", r1);
// }
CVars xx;
if (member_id > 0) {