The IoT Telemetry Simulator allows you to test Azure IoT Hub or Eventhub ingestion at scale. The implementation is communicating with Azure IoT Hub using multiplexed AMQP connections. An automation library allows you to run it as load test as part of a CI/CD pipeline.
- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)
This issue is for a: (mark with an
x
)Minimal steps to reproduce
Ran the dockerhub image with:
Accessing the IoT Hub Event Hubs endpoint shows a mixture of events with properly populated random values, and events where all random values are 0:
OS and Version?
Current Dockerhub image
Versions
Mention any other details that might be useful
This is probably related to sharing a single
Random
instance in theTelemetryValues
classhttps://stackoverflow.com/questions/3049467/is-c-sharp-random-number-generator-thread-safe