Thread (3 messages) flat view 3 messages, 2 authors, 2015-07-17

Re: [PATCH] powerpc: Use hardware RNG for arch_get_random_seed_* not arch_get_random_*

From: Segher Boessenkool <hidden>
Date: 2015-07-17 09:38:24

On Fri, Jul 17, 2015 at 07:15:58PM +1000, Paul Mackerras wrote:
quoted hunk ↗ jump to hunk
@@ -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 :-)


Segher
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help