POWER9: Is there a way to improve the random number generation on PPC64?
Gustavo Romero
gromero at linux.vnet.ibm.com
Wed Nov 29 14:56:29 UTC 2017
Hi Volker,
On 29-11-2017 11:21, Volker Simonis wrote:
> I don't think that would be easy to do (if possible at all).
>
> The correct way to handle such situations would be to define a Java
> method with the exact semantics of your 'darn' instruction. All the
> other logic should be implemented in Java. So for example you would
> implement SecureRandom.darn() and call it from engineNextBytes(). At
> the call site of darn() you check the error value and dispatch to the
> corresponding Java implementation if necessary.
I see. Thanks for advising.
More information about the ppc-aix-port-dev
mailing list