You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2019/11/15 09:50:04 UTC

[GitHub] [mynewt-core] utzig commented on a change in pull request #2094: oc_core: randomize uuid before use

utzig commented on a change in pull request #2094: oc_core: randomize uuid before use
URL: https://github.com/apache/mynewt-core/pull/2094#discussion_r346739461
 
 

 ##########
 File path: net/oic/src/api/oc_core_res.c
 ##########
 @@ -207,6 +208,21 @@ oc_core_platform_handler(oc_request_t *req, oc_interface_mask_t interface)
     }
 }
 
+static void oc_core_randomize_uuid(oc_uuid_t *pu)
+{
+    struct trng_dev *dev;
+    int i;
+
+    dev = (struct trng_dev *)os_dev_lookup("trng");
+    if (!dev) {
+        for(i=0; i<16; i++) {
 
 Review comment:
   This does not follow the typical C style.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services