Skip to content

Conversation

@r1viollet
Copy link
Collaborator

Description

Java scenarios

for (int i = 0; i < numThreads; i++) {
executor.submit(() -> {
while (!Thread.currentThread().isInterrupted()) {
double value = Math.pow(Math.random(), Math.random());

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Vulnerability

Use of insecure random values (...read more)

Functions as Math.random() and objects like java.util.Random() do not provide strong enough randomness. Consider using java.security.SecureRandom() instead.

View in Datadog  Leave us feedback  Documentation

for (int i = 0; i < numThreads; i++) {
executor.submit(() -> {
while (!Thread.currentThread().isInterrupted()) {
double value = Math.pow(Math.random(), Math.random());

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Vulnerability

Use of insecure random values (...read more)

Functions as Math.random() and objects like java.util.Random() do not provide strong enough randomness. Consider using java.security.SecureRandom() instead.

View in Datadog  Leave us feedback  Documentation

for (int i = 0; i < numThreads; i++) {
executor.submit(() -> {
while (!Thread.currentThread().isInterrupted()) {
double value = Math.pow(Math.random(), Math.random());

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Vulnerability

Use of insecure random values (...read more)

Functions as Math.random() and objects like java.util.Random() do not provide strong enough randomness. Consider using java.security.SecureRandom() instead.

View in Datadog  Leave us feedback  Documentation

@r1viollet
Copy link
Collaborator Author

Now all we need is to build JFR parsers 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants