The analyzer detected suspicious code that initializes the pseudo-random number generator with a constant value. This is inefficient and may result in creating numbers that are not random enough, depending on the JDK.įor a more efficient and random distribution, create an instance of the 'Random' class, save it, and reuse it. Download and install plugins for SonarQube or Jenkins. It may result in insufficient randomness or predictability of the generated number.Ĭreating a new object of the 'Random' type every time a random value is required. PVS Studio 0. Download a PVS-Studio distribution for free: for C, C++, C, and Java, on Windows, Linux, and macOS. To learn about features in every previous PVS-Studio release, see the Release History page. Catch up on everything new that appeared in the analyzer over the last year. net tools, seo analyzer, apps builder, web designer, code analyzer, website monitor and many other useful. Want to try PVSStudio for free Read about the main features in the latest PVS-Studio release. This diagnostic rule detects cases where a pseudo-random number generator is used. Free Download website builder, code editor.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |