Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] GetRandom32t returns 0 #4

Open
ToToSpl opened this issue Oct 16, 2024 · 0 comments
Open

[Question] GetRandom32t returns 0 #4

ToToSpl opened this issue Oct 16, 2024 · 0 comments

Comments

@ToToSpl
Copy link

ToToSpl commented Oct 16, 2024

Hi,

I saw that function GetRandom32t here does not return random value but instead 0. I saw that this is related with some error:

    // REG_LR_RSSIWIDEBAND and SX1272Read not defined at this scope
    // Unfiltered RSSI value reading. Only takes the least sitgnificant bit
    // rnd |= ( ( uint32_t )SX1272Read( REG_LR_RSSIWIDEBAND ) & 0x01 ) << i;

I wanted to ask: does this influence encryption? If this decreases safety of the communication I can try to fix this issue or try to implement different rand function (I was thinking about using time since boot + phrase as seed).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant