The code is correct, it's caused by clocks. I can see that you are using clock option A. In this case, it's necessary to program new DCF record to UTEST to change HSE_CLK_MODE_AND_GSKT_CTRL. This will ensure that internal clocks are correctly synchronized.
You can find file S32K3xx_DCF_clients.xlxs in S32K3 reference manual.
And you can find there that dcf_client_utest_misc contains HSE_CLK_MODE_AND_GSKT_CTRL which can have following values:

So, it must be set to 1x. It is not default value, so we need to reprogram it.
Here is a screenshot from my debugger where I already added new DCF record:

The yellow record is original record programmed in factory. I programmed new record (in red) on first available address where I changed HSE_CLK_MODE_AND_GSKT_CTRL accordingly. And then the RNG service works as expected.
You can use attached script to program the record. Just check if 0x1B000770 is first available position in your UTEST.
Or next option is to program the record by your application.
Regards,
Lukas