File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
src/jvmMain/kotlin/bbs/priorityqueue/sdk Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 11# Gradle properties
2- version =1.0.0
2+ version =1.0.2
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ import bbs.priorityqueue.model.ReturnStatusEnum
2727import bbs.priorityqueue.model.SystemInfo
2828import bbs.priorityqueue.utils.Utils
2929import java.math.BigDecimal
30+ import java.security.SecureRandom
3031import java.time.OffsetDateTime
3132import java.time.ZoneOffset
3233import java.util.*
@@ -66,10 +67,21 @@ class Dynamodb(builder: Builder) : Database {
6667 credentials
6768 )
6869 )
70+
71+ // Creates a new instance of secure random everytime Dynamodb is instantiated
72+ // Fix? to Random/SplittableRandom being stored in heap when library is being compiled for a native-image
73+
74+ val secureRandom : SecureRandom = SecureRandom ()
75+ secureRandom.generateSeed(32 )
76+
6977 if (! Utils .checkIfNullObject(awsRegion)) builder.withRegion(awsRegion)
7078 dynamoDB = builder
7179 .withClientConfiguration(
72- ClientConfiguration ().withMaxConnections(100 ).withConnectionTimeout(30000 )).build()
80+ ClientConfiguration ()
81+ .withMaxConnections(100 )
82+ .withConnectionTimeout(30000 )
83+ .withSecureRandom(secureRandom))
84+ .build()
7385
7486 val mapperConfig = DynamoDBMapperConfig .builder()
7587 .withSaveBehavior(DynamoDBMapperConfig .SaveBehavior .CLOBBER )
You can’t perform that action at this time.
0 commit comments