Skip to content

Commit 4cb6322

Browse files
author
Tero Heinonen
committed
Merge pull request #6 from ARMmbed/random_fix
random fix
2 parents 52f3738 + cbb678f commit 4cb6322

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

module.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "coap-service",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "CoAP Service library",
55
"keywords": [
66
"coap",

source/coap_security_handler.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ int entropy_poll( void *ctx, unsigned char *output, size_t len,
395395
}
396396
memset(c, 0, len);
397397
for(uint16_t i=0; i < len; i++){
398-
*(c + 1) = (char)randLIB_get_8bit();
398+
*(c + i) = (char)randLIB_get_8bit();
399399
}
400400
memmove(output, c, len);
401401
*olen = len;

0 commit comments

Comments
 (0)