micro-ROS / micro-ROS/rmw_microxrcedds
Avoid using srand/rand
Open
- Dominant language
- C
- Stars
- 47
- Forks
- 36
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 6
Description
The newlib implementation of `srand` calls `malloc` which is a no-go in some applications.
https://github.com/micro-ROS/rmw_microxrcedds/blob/a698d4e9fc7f6780c44cc900a279d3f2d0c90856/rmw_microxrcedds_c/src/rmw_init.c#L114
Contributor guide
Research direction
Start at rmw_microxrcedds_c/src/rmw_init.c around line 114 and inspect how srand/rand is used during initialization. Identify an approach that avoids the newlib malloc dependency, then verify the initialization path still behaves correctly in the affected applications.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- embedded-iot
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100