Imported Upstream version 0.9.2
[platform/upstream/iotivity.git] / resource / csdk / ocrandom / test / android / randomtest.cpp
index 9f22173..07028e2 100644 (file)
@@ -50,8 +50,7 @@ TEST(RandomGeneration,OCGetRandom) {
 
 TEST(RandomGeneration,OCFillRandomMem) {
     uint16_t ARR_SIZE = 20;
-    uint8_t array[ARR_SIZE];
-    memset(array, 0, ARR_SIZE);
+    uint8_t array[ARR_SIZE]={};
     OCFillRandomMem(array + 1, ARR_SIZE - 2);
 
     for (int i = 1; i < ARR_SIZE - 2; i++) {