The function returned info[1] (which is the content of the ebx
register) instead of 0 when it detected that rdseed is unavailable.
This is likely a remnant from an earlier iteration of the code.
While it is unlikely that it will show up as bug (all of the bits of
ebx would have to be cleared, except bit #0 which would have to be
set) due to the calling function comparing the return value explicitly
with 1, it's still better to fix it.
The function returned
info[1]
(which is the content of theebx
register) instead of0
when it detected that rdseed is unavailable. This is likely a remnant from an earlier iteration of the code.While it is unlikely that it will show up as bug (all of the bits of
ebx
would have to be cleared, except bit #0 which would have to be set) due to the calling function comparing the return value explicitly with 1, it's still better to fix it.