We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ed98fd7 + 4b5677d commit f27e724Copy full SHA for f27e724
src/util/tempfile.cpp
@@ -62,7 +62,7 @@ int my_mkstemps(char *template_str, int suffix_len)
62
static long long unsigned int random_state;
63
random_state+=getpid()+123;
64
65
- for(unsigned attempt=0; ; ++attempt)
+ for(unsigned attempt = 0; attempt < 1000; ++attempt)
66
{
67
unsigned long long number=random_state;
68
0 commit comments