4 ms·
That commit series doesn't actually appear to use the new class, besides initialising it. Simply initialising it is insufficient, because you need to call addP
by lwf 13y ago
That commit series doesn't actually appear to use the new class, besides initialising it.
Simply initialising it is insufficient, because you need to call addProvider() (cf. https://developer.android.com/reference/java/security/Security.html https://developer.android.com/reference/java/security/Securi... ) to actually have any effect.
- gojomo 13y agoThe LinuxSecureRandom class has a 'static initializer' block, which will run as soon as the class is loaded. (That is, triggered by the reference and initialization call, but just before.) It purports to install LinuxSecureRandom as a new systemwide default (LinuxSecureRandom, lines 56-57).