[libc-commits] [libc] [libc] Add separate `rand` implementation for baremetal (PR #96798)

Nick Desaulniers via libc-commits libc-commits at lists.llvm.org
Wed Jun 26 10:18:07 PDT 2024


================
@@ -0,0 +1,18 @@
+//===-- Shared utility for rand -------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include "src/stdlib/rand_util.h"
+#include "src/__support/macros/attributes.h"
----------------
nickdesaulniers wrote:

unused?

libc/src/stdlib/rand_util.cpp has that issue, too. Mind cleaning that up in this PR, too?

https://github.com/llvm/llvm-project/pull/96798


More information about the libc-commits mailing list