[PATCH] powerpc: Use hardware RNG for arch_get_random_seed_* not arch_get_random_*
Paul Mackerras
paulus at samba.org
Fri Jul 17 20:09:31 AEST 2015
On Fri, Jul 17, 2015 at 04:37:57AM -0500, Segher Boessenkool wrote:
> On Fri, Jul 17, 2015 at 07:15:58PM +1000, Paul Mackerras wrote:
> > @@ -7,13 +7,22 @@
> >
> > static inline int arch_get_random_long(unsigned long *v)
> > {
> > + return 0;
> > +}
> > +
> > +static inline int arch_get_random_int(unsigned int *v)
> > +{
> > + return 0;
> > +}
> > +
> > +static inline int arch_get_random_seed_long(unsigned long *v)
> > +{
> > if (ppc_md.get_random_long)
> > return ppc_md.get_random_long(v);
>
> You probably want to change that last name (ppc_md.get_random_long) then?
> Pretty confusing like this :-)
Fair point. New patch coming.
Paul.
More information about the Linuxppc-dev
mailing list