diff --git a/subsys/bluetooth/mesh/beacon.c b/subsys/bluetooth/mesh/beacon.c index e77302e58ce..8c0ac3b54e9 100644 --- a/subsys/bluetooth/mesh/beacon.c +++ b/subsys/bluetooth/mesh/beacon.c @@ -794,9 +794,3 @@ void bt_mesh_beacon_disable(void) /* If this fails, we'll do an early exit in the work handler. */ (void)k_work_cancel_delayable(&beacon_timer); } - -void bt_mesh_beacon_priv_random_get(uint8_t *random, size_t size) -{ - __ASSERT(size <= sizeof(priv_random.val), "Invalid random value size %u", size); - memcpy(random, priv_random.val, size); -} diff --git a/subsys/bluetooth/mesh/beacon.h b/subsys/bluetooth/mesh/beacon.h index 7efebde167c..0e38ab012a3 100644 --- a/subsys/bluetooth/mesh/beacon.h +++ b/subsys/bluetooth/mesh/beacon.h @@ -15,4 +15,3 @@ int bt_mesh_beacon_create(struct bt_mesh_subnet *sub, struct net_buf_simple *buf void bt_mesh_beacon_init(void); void bt_mesh_beacon_update(struct bt_mesh_subnet *sub); -void bt_mesh_beacon_priv_random_get(uint8_t *random, size_t size);