RandomGenerator
- Last Updated: May 15, 2020
- 1 minute read
- DataDirect Connectors
- JDBC
- IBM Db2 5.1
- MySQL 5.1
- Progress OpenEdge 5.1
- SAP Sybase 5.1
- Documentation
Purpose
Specifies the type of random number generator the database uses for secure seeding. Oracle uses a random number generator for secure seeding when establishing connections. A random number generator is also used, in a separate seeding process, for Kerberos authentication. Kerberos authentication can be implemented with the AuthenticationMethod connection property.
Valid Values
random | secureRandom
Behavior
If set to random, a stream of pseudorandom numbers is generated for secure
seeding.
If set to secureRandom, a cryptographically strong number generation
algorithm is used for secure seeding. By default, the SHA1PRNG algorithm is used. However,
if you are using JDK 8 or higher, you can use the SecureRandomAlgorithm connection property
to designate the number generation algorithm you want to use.
Notes
- When establishing a connection with a connection string, RandomGenerator should precede the User and Password connection properties in the connection URL. When using a data source connection, RandomGenerator should be set before making calls to setUser(), setPassword(), or setNewPassword().
SecureRandomoffers more secure seeding of random numbers, and, in turn, requires additional processing. Therefore, response times for applications may be slower when compared to response times with RandomGenerator set torandom. By default, the driver is set tosecureRandom.- For more information on SecureRandom seeding, refer to the API specification for your edition of Java.
Default
secureRandom
Data Type
String