tell / tepla

A mirror of TEPLA
3 stars 1 forks source link

Redesign random number generation #22

Open tell opened 8 years ago

tell commented 8 years ago

A function bn254_fp_random uses a random number generator provided by GNU MP. This generator is not cryptographically secure, also, there exists several problems, and other random functions are also. Be careful when you use them to take benchmarking and deploy into your systems.

The random number generator should be provided by external modules, so API and internals of random number generation should be redesigned.