Files
codeql/java/ql/test/query-tests/RandomUsedOnce/Test.java
Chris Smowton e3cf5c235e Add support for Commons-Lang's RandomUtils
This is realised by somewhat generalising our interfaces for modelling RNGs. We also add tests for randomness-related queries that didn't have any, and addtest cases checking the Apache random-number generators are interchangeable with the stdlib ones.
2021-03-05 12:09:33 +00:00

12 lines
116 B
Java

import java.util.Random;
public class Test {
public static void test() {
(new Random()).nextInt();
}
}