Skip to content

Fix SonarCloud warning: "Save and re-use this Random".#17288

Open
anukalp2804 wants to merge 1 commit intoapache:masterfrom
anukalp2804:fix/re-use_of_Random
Open

Fix SonarCloud warning: "Save and re-use this Random".#17288
anukalp2804 wants to merge 1 commit intoapache:masterfrom
anukalp2804:fix/re-use_of_Random

Conversation

@anukalp2804
Copy link
Contributor

Description

Fix SonarCloud warning "Save and re-use this Random" by reusing a single SecureRandom instance.

Files modified:

  • example/session/src/main/java/org/apache/iotdb/AlignedTimeseriesSessionExample.java.

This change addresses a Sonar-reported re-use of SecureRandom:

This PR has:

  • been self-reviewed.
  • been built locally with mvn spotless:apply.
  • been built locally with mvn clean package -DskipTests.
  • been built locally with mvn -pl iotdb-core -am test -DskipTests.

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.

1 participant