barretenberg icon indicating copy to clipboard operation
barretenberg copied to clipboard

Fix random field/value generation speed

Open Rumata888 opened this issue 11 months ago • 0 comments

Randomness in barretenberg is taken from random_device which is extremely slow (syscall per 4 bytes). It needs to be replaced at some point at least for the server usecase. The conversion of that randomness to field format is also horrible, because it uses long division. It should be replaced by 2 montgomery multiplications + addition

Rumata888 avatar Mar 19 '24 14:03 Rumata888