Merge pull request #64 from swilson/master

Provide API access to the built-in RNG code.
diff --git a/uECC.c b/uECC.c
index 26a95a6..f65fe37 100644
--- a/uECC.c
+++ b/uECC.c
@@ -180,6 +180,10 @@
     g_rng_function = rng_function;
 }
 
+uECC_RNG_Function uECC_get_rng(void) {
+    return g_rng_function;
+}
+
 #if !asm_clear
 uECC_VLI_API void uECC_vli_clear(uECC_word_t *vli, wordcount_t num_words) {
     wordcount_t i;
diff --git a/uECC.h b/uECC.h
index f753a51..ca3f787 100644
--- a/uECC.h
+++ b/uECC.h
@@ -112,6 +112,12 @@
 */
 void uECC_set_rng(uECC_RNG_Function rng_function);
 
+/* uECC_get_rng() function.
+
+Returns the function that will be used to generate random bytes.
+*/
+uECC_RNG_Function uECC_get_rng(void);
+
 /* uECC_make_key() function.
 Create a public/private key pair.