Add random init/destroy in core resource TC.
Add random init/destroy in core resource TC.

If core resource test is executed in non-secure build,
it will be stuck when read random value.
So, oc_random_init/destory() is added when OC_SECURITY
flag is not defined in core resource test.

Change-Id: I0cd7b28a609a95465e1603ef10e38117ad6d7f38
Signed-off-by: Jaehyun Cho <28489b2a5d4d866f0b2c5b336308eed1088d78b6@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/27223
Tested-by: IoTivity Jenkins <6267f6022d49a8a37a7fe97da24aebfab797522c@iotivity.org>
Reviewed-by: Kishen Maloor <c62ddea3cd661a9268bff15f07fc2229cdc9ac02@intel.com>

iotivity/iotivity-constrained,iotivity/iotivity-constrained,iotivity/iotivity-constrained,iotivity/iotivity-constrained