<div dir="ltr">Cheers, will fix it up. Would still be useful to have a fast random generator (this one does about 1.5GB/s on my machine)</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, May 6, 2013 at 12:48 AM, Liu Yuan <span dir="ltr"><<a href="mailto:namei.unix@gmail.com" target="_blank">namei.unix@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 05/06/2013 03:36 PM, Joseph Glanville wrote:<br>
> +#!/bin/bash<br>
> +openssl enc -aes-256-ctr -pass pass:"$(dd if=/dev/urandom bs=128 count=1 2>/dev/null | base64)" -nosalt < /dev/zero | cat<br>
<br>
</div>The script didn't work, see following output with your patch applied:<br>
<br>
====================<br>
yliu@K55VM-ubuntu:~/sheepdog/tests$ sudo ./check 008<br>
PLATFORM -- Linux/x86_64 K55VM-ubuntu 3.7.0<br>
<br>
008 Last Used:94s. Test doing heavy IO while confchg change - output<br>
mismatch (see 008.out.bad)<br>
--- 008.out 2013-03-20 16:38:45.092403504 +0800<br>
+++ 008.out.bad 2013-05-06 15:42:09.233368939 +0800<br>
@@ -2,3 +2,8 @@<br>
using backend farm store<br>
begin kill<br>
wait for object recovery to finish<br>
+error writing output file<br>
+error writing output file<br>
+error writing output file<br>
+error writing output file<br>
+error writing output file<br>
Failures: 008<br>
Failed 1 of 1 tests<br>
<br>
=====================<br>
<br>
And it is better to write a function _random() in common.rc. Also<br>
Signed-Of-By line is missing, please see<br>
<br>
<a href="https://github.com/collie/sheepdog/wiki/Submit-a-patch" target="_blank">https://github.com/collie/sheepdog/wiki/Submit-a-patch</a><br>
<br>
for more information<br>
<br>
Thanks,<br>
Yuan<br>
</blockquote></div><br></div>