在 2024-03-04 08:04, Mateusz Mikuła 写道:
- template_name[j] = letters[rand () % 62]; + if (rand_s (&r)) return -1; + template_name[j] = letters[r % 62];
Does it make sense that if `rand_s()` fails, use `rand()` as a fallback?We have a custom implementation of `rand_s()` in 'secapi/rand_s.c' which may return `EINVAL` on Windows 2000.
-- Best regards, LIU Hao
OpenPGP_signature.asc
Description: OpenPGP digital signature
_______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public