[dpdk-dev] [RFC] eal: make rte_rand() MT safe

Mattias Rönnblom mattias.ronnblom at ericsson.com
Sat Apr 6 07:52:31 CEST 2019


On 2019-04-05 22:50, Stephen Hemminger wrote:
> 
> Read the discussion link about ARC4. http://www.pcg-random.org/
> 
> 	As a general-purpose PRNG, it is rather slow, and it is also slow by
> 	the standards of modern cryptographic PRNGs and is also considered too
> 	weak to use for cryptographic purposes. It is, however, of historical
> 	interest and can be useful in testing to see how sensitive a algorithms
> 	are to PRNG speed.
> 
> Using ARC4 replaces a one legacy one with another.
> 

Yes, I agree.

After looking at the code, I learned that - seemingly - most 
arc4random() implementations aren't using ARC4, but ChaCha.

Would it be unfortunate from a export control point of view to include 
cipher-based random generators in DPDK?


More information about the dev mailing list