29 Nov
2017
29 Nov
'17
2:56 p.m.
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.