[crac] RFR: Reseed secure random on checkpoint restore

Alexey Bakhtin abakhtin at openjdk.java.net
Mon Dec 20 15:48:18 UTC 2021


On Fri, 17 Dec 2021 21:06:21 GMT, Alexey Bakhtin <abakhtin at openjdk.org> wrote:

>> Given that explanation, how were `-12` & `-11` chosen here?  Randomly as low enough to ensure these are changed late?
>
> Yes and No :) I left some space for the future JDK resources that depend on the secure randoms (use secure random inside own beforeCheckpoint method)
> Maybe these priorities should be collected in a single class, e.g. defined in the JDKresource interface

Added pull request to collect JDKResorce priorities in the single enumeration: https://github.com/openjdk/crac/pull/8
Current PR will be updated as soon as JDKResource priorities is accepted and integrated

-------------

PR: https://git.openjdk.java.net/crac/pull/7


More information about the crac-dev mailing list