update log message
minor improvement

Correct the miss leading log message, and let macro more robust.
minor update to test.c

Check if Rand_Bytes() really works.