Commit fbf83a3e authored by 黄奎's avatar 黄奎

1111

parent 08395160
...@@ -452,7 +452,14 @@ WHERE 1=1 ...@@ -452,7 +452,14 @@ WHERE 1=1
{ {
double seconds = (endTime - startTime).TotalSeconds; double seconds = (endTime - startTime).TotalSeconds;
Random rnd = new(); Random rnd = new();
var newSeconds = rnd.Next(0, Convert.ToInt32(seconds)); var newSeconds =1;
try
{
newSeconds = rnd.Next(0, Convert.ToInt32(seconds));
}
catch {
}
return newSeconds; return newSeconds;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment