ylavic commented on code in PR #79:
URL: https://github.com/apache/apr/pull/79#discussion_r4741031043


##########
tables/apr_skiplist.c:
##########
@@ -219,6 +226,10 @@ static apr_status_t skiplisti_init(apr_skiplist **s, 
apr_pool_t *p)
             return APR_ENOMEM;
         }
     }
+    sl->randstate = (apr_uint32_t)((apr_uintptr_t)sl >> 4) ^ 0x9e3779b9;

Review Comment:
   Maybe use apr_generate_random_bytes() here for the seed?



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to