Contiki-NG
Toggle main menu visibility
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
/*---------------------------------------------------------------------------*/
15
void
16
nrf_802154_random_init(
void
)
17
{
18
/* Contiki-NG random is already initialized. */
19
}
20
/*---------------------------------------------------------------------------*/
21
void
22
nrf_802154_random_deinit(
void
)
23
{
24
/* Nothing to do. */
25
}
26
/*---------------------------------------------------------------------------*/
27
uint32_t
28
nrf_802154_random_get(
void
)
29
{
30
return
(uint32_t)random_rand() | ((uint32_t)random_rand() << 16);
31
}
32
/*---------------------------------------------------------------------------*/
random.h
Header file for generating non-cryptographic random numbers.
arch
cpu
nrf
nrf54l15
nrf_802154_platform_random.c
Generated on
for Contiki-NG by
1.17.0