Hi, Eugene,
I suppose that the RNG(Random Number Generation) is nothing to do with the SVC handler.
This is the SVCall interrupt official definition:
SVCall A supervisor call (SVC) is an exception that is triggered by the SVC
instruction. In an OS environment, applications can use SVC instructions to
access OS kernel functions and device drivers.
The RNG is not related to SVCall.
I think it is okay to use the RNG module in SDK for LPC family:
#define RNG_EXAMPLE_RANDOM_NUMBERS (4)
#define RNG_EXAMPLE_RANDOM_BYTES (16)
uint32_t number;
uint32_t data[RNG_EXAMPLE_RANDOM_NUMBERS];
#define RNG_EXAMPLE_RANDOM_NUMBER_BITS (RNG_EXAMPLE_RANDOM_NUMBERS * 8 * sizeof(uint32_t))
RNG_Init(RNG);
status = RNG_GetRandomData(RNG, &data, RNG_EXAMPLE_RANDOM_BYTES);
status = RNG_GetRandomData(RNG, &data, RNG_EXAMPLE_RANDOM_BYTES);
status = RNG_GetRandomData(RNG, &data, RNG_EXAMPLE_RANDOM_BYTES);
Hope it can help you
BR
XiangJun Rong