projects
/
platform
/
upstream
/
iotivity.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Imported Upstream version 0.9.2
[platform/upstream/iotivity.git]
/
resource
/
csdk
/
ocrandom
/
test
/
android
/
randomtest.cpp
diff --git
a/resource/csdk/ocrandom/test/android/randomtest.cpp
b/resource/csdk/ocrandom/test/android/randomtest.cpp
index
9f22173
..
07028e2
100644
(file)
--- a/
resource/csdk/ocrandom/test/android/randomtest.cpp
+++ b/
resource/csdk/ocrandom/test/android/randomtest.cpp
@@
-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++) {