Contiki-NG
Loading...
Searching...
No Matches
nrf_802154_platform_random.c
1/*
2 * Copyright (c) 2026, RISE Research Institutes of Sweden AB
3 * All rights reserved.
4 *
5 * Author: Joakim Eriksson <joakim.eriksson@ri.se>
6 *
7 * SPDX-License-Identifier: BSD-3-Clause
8 *
9 * Random number generator platform for nrf_802154 on nRF54L15.
10 */
11
12#include "platform/nrf_802154_random.h"
13#include "lib/random.h"
14/*---------------------------------------------------------------------------*/
15void
16nrf_802154_random_init(void)
17{
18 /* Contiki-NG random is already initialized. */
19}
20/*---------------------------------------------------------------------------*/
21void
22nrf_802154_random_deinit(void)
23{
24 /* Nothing to do. */
25}
26/*---------------------------------------------------------------------------*/
27uint32_t
28nrf_802154_random_get(void)
29{
30 return (uint32_t)random_rand() | ((uint32_t)random_rand() << 16);
31}
32/*---------------------------------------------------------------------------*/
Header file for generating non-cryptographic random numbers.