cyancore
cyancore copied to clipboard
<Driver> Implement PRNG/TRNG (soft device)
Is your feature request related to a problem? Please describe.
libc: rand()
is a very simple and crude implementation of random number generator.
Cyancore needs a true random number generator which should have a soft and hard implementation provision.
Describe the solution you'd like
Implement a driver which provides 2 apis
-
void srng(long num)
-
long rng()
which should have software algorithm and simultaneously should have hardware acceleration plugin.
Soft RNG
- Should be very fast 32bit RNG
- Try using bitwise operations to speed up computation
- minimal use of pointers,
mul
anddiv
ops