Unfortunately random number generation is not an exception, I saw a lot of IoT SDKs which are just terrible in general. Bad gotchas, missing error handling, dangerous failure modes and so on.
When possible, one should try to use non-vendor aligned OS project.