From 5af58cc6865807bd253aed0f47143ca6f446685b Mon Sep 17 00:00:00 2001 From: Robert Schmidt Date: Tue, 2 Dec 2025 13:35:47 +0100 Subject: [PATCH] RFemulator: initialize RNG when using noise device After !3786, we always have to initialize the RNG when using random numbers. This was not done for RFemulator and has been added here. --- radio/emulator/rf_emulator.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/radio/emulator/rf_emulator.c b/radio/emulator/rf_emulator.c index 861daab2ba..e73e9bf3d6 100644 --- a/radio/emulator/rf_emulator.c +++ b/radio/emulator/rf_emulator.c @@ -364,6 +364,8 @@ int device_init(openair0_device *device, openair0_config_t *openair0_cfg) device->trx_read_func = emulator_read; emulator_readconfig(emulator_state); + if (emulator_state->enable_noise) + randominit(); // for noise device return 0; }