Generate a random uint64_t , which will be used for the netlogon
logon_id.
Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
return IVAL(v, 0);
}
+/**
+ @brief generate a random uint64
+**/
+_PUBLIC_ uint64_t generate_random_u64(void)
+{
+ uint8_t v[8];
+ generate_random_buffer(v, 8);
+ return BVAL(v, 0);
+}
+
+
/**
Microsoft composed the following rules (among others) for quality
**/
_PUBLIC_ uint32_t generate_random(void);
+/**
+ generate a single random uint64_t
+**/
+_PUBLIC_ uint64_t generate_random_u64(void);
+
/**
very basic password quality checker
**/