We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
_get_entropy()
1 parent dfc26a0 commit 2e2651fCopy full SHA for 2e2651f
src/rp2_common/pico_clib_interface/newlib_interface.c
@@ -152,6 +152,11 @@ int __attribute__((weak)) _isatty(int fd) {
152
return fd == STDIO_HANDLE_STDIN || fd == STDIO_HANDLE_STDOUT || fd == STDIO_HANDLE_STDERR;
153
}
154
155
+int __attribute__((weak)) _getentropy (__unused void *buffer, __unused size_t length) {
156
+ // note we don't hook this up as it isn't clear if/where it is used, and we don't particularly
157
+ // want to pull in pico_rand. the user can supply their own strong implementation if they need it!
158
+ return -1;
159
+}
160
// exit is not useful... no desire to pull in __call_exitprocs
161
void exit(int status) {
162
_exit(status);
0 commit comments