furi_hal_random
returns values when RNG output is not ready
#3932
Labels
furi_hal_random
returns values when RNG output is not ready
#3932
Describe the bug.
furi_hal_random
does not check error and ready conditions of random generators and returns empty generator output.Reproduction
Fill buffer of size at least 40 bytes with
furi_hal_random_fill_buf
and view it somehow(e. g. print on screen), 8 bytes of the buffer are filled with zeroesTarget
Flipper Zero
Logs
No response
Anything else?
In #2569 logic of error checks of random generator was changed.
furi_hal_random
waited for ready state (DRDY=1
) and crashed on error conditions (CECS=1
orSECS=1
)furi_hal_random
waits for (DRDY=1
orCECS=0
orSECS=0
)I think valid condition to sample random (
DRDY=1
andCECS=0
andSECS=0
) and valid condition forfuri_hal_random_read_rng
isThe text was updated successfully, but these errors were encountered: