hwrand32() Seed #1008
NuclearPhoenixx
started this conversation in
Ideas
hwrand32() Seed
#1008
Replies: 1 comment 3 replies
-
For a HW random generator there's no such thing as a seed, though. Only PRNGs have them. So I don't think the proposed function signature makes sense, sorry. You could take your random source, collect enough bits, and then just |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
I'm building a true random number generator using radioactive decay and a Pico, which obviously is a great source for randomness, but pretty limited in the amount of numbers you can get out of that, of course.
Now I'd like to use the pseudorandom generator with these truly random numbers as seeds, so that I can somewhat combine the advantages of both methods.
Unfortunately, the function
rp2040.hwrand32()
only supports seeds using the CPU cycle counter, if I understood that correctly. How difficult would it be to supply your own seed with this function? I have no idea how you implemented that, but just callinguint32_t rp2040.hwrand32(uint32_t seed)
or something like that would be awesome. 😃Beta Was this translation helpful? Give feedback.
All reactions