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.
This commit is contained in:
Robert Schmidt
2025-12-02 13:35:49 +01:00
parent a9e7018b98
commit 5af58cc686
+2
View File
@@ -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;
}