random/ivy: Trivial refactoring
It is clearer to me to return success/error (true/false) instead of some
retry count linked to the inline assembly implementation.
No functional change.
(cherry picked from commit c41faf5591bdda3556d7616913381e98109bff15)