random fix

version v1.0.2
pull/3240/head
Tero Heinonen 2016-01-18 15:23:20 +02:00
parent 52f3738b82
commit cbb678f25b
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "coap-service",
"version": "1.0.1",
"version": "1.0.2",
"description": "CoAP Service library",
"keywords": [
"coap",

View File

@ -395,7 +395,7 @@ int entropy_poll( void *ctx, unsigned char *output, size_t len,
}
memset(c, 0, len);
for(uint16_t i=0; i < len; i++){
*(c + 1) = (char)randLIB_get_8bit();
*(c + i) = (char)randLIB_get_8bit();
}
memmove(output, c, len);
*olen = len;