FixInsight for Delphi
Sign in / Sign up
Sign in / Sign up
User profile
Olivier Sannier
Your comments
[W510] False positive with string concatenation
Could you also add an exception for Random?
I have this kind of code here and there:
IntToStr(Random(MaxDiv2) - Random(MaxDiv2));
FloatToStr((Random - Random) * Random(MaxDiv2));
Yes, it looks a bit stupid, but it's used in automated tests to give unexpected values.
11 years ago
Customer support service
by UserEcho
Olivier Sannier
1.02
Registered:
11 years ago
Last activity:
11 years ago
User menu
1
Topics
1
Comments
I have this kind of code here and there:
IntToStr(Random(MaxDiv2) - Random(MaxDiv2));
FloatToStr((Random - Random) * Random(MaxDiv2));
Yes, it looks a bit stupid, but it's used in automated tests to give unexpected values.