cyancore icon indicating copy to clipboard operation
cyancore copied to clipboard

<Driver> Implement PRNG/TRNG (soft device)

Open akashkollipara opened this issue 1 year ago • 0 comments

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 and div ops

akashkollipara avatar Feb 23 '23 07:02 akashkollipara