normanr commented on code in PR #6154:
URL: https://github.com/apache/incubator-nuttx/pull/6154#discussion_r906870581


##########
net/tcp/tcp_conn.c:
##########
@@ -49,6 +49,7 @@
 #include <assert.h>
 #include <errno.h>
 #include <debug.h>
+#include <sys/random.h>

Review Comment:
   Yea, I was just surprised that kernel code was calling a libc function that 
was opening a file. I assume #6421 makes this work properly from the kernel 
context.
   
   My other concern (of having to open a file descriptor) was partly fixed by 
#6438. Correcting the comment is easy compared to refactoring the code to avoid 
using the file descriptor.



-- 
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: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to