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
/
arduino
/
randomtest.cpp
diff --git
a/resource/csdk/ocrandom/test/arduino/randomtest.cpp
b/resource/csdk/ocrandom/test/arduino/randomtest.cpp
index
904b73c
..
d9faf0d
100644
(file)
--- a/
resource/csdk/ocrandom/test/arduino/randomtest.cpp
+++ b/
resource/csdk/ocrandom/test/arduino/randomtest.cpp
@@
-52,8
+52,7
@@
void setup() {
}
Serial.print("Testing OCFillRandomMem ... ");
- uint8_t array[ARR_SIZE];
- memset(array, 0, ARR_SIZE);
+ uint8_t array[ARR_SIZE] = {};
OCFillRandomMem(array + 1, ARR_SIZE - 2);
uint8_t overall = 0;
uint8_t value82 = 0;