Go Down

Topic: Update to the Entropy Library (Read 1 time) previous topic - next topic

wanderson

Paul Stoffregen has provided an update to the Entropy library that allows it to work on the ARM chip he uses for his Teensy 3.1 boards and is also producing test data for a couple of scenarios, the first of which has been posted to the wiki page.  It is possible that this will also work on other ARM based arduinos but that will require folks to try the library and test it.

If you choose to test this on an ARM board (or another AVR) just load this sketch to the board and capture the output to a text file for at least 12-24 hours.  Then send me the output file along with information on the board, the cpu type, its date code, etc...  You can see examples of the information I need for each test (less the analysis which I will perform) on the wiki page for the library:http://code.google.com/p/avr-hardware-random-number-generation/wiki/WikiAVRentropy

Code: [Select]
#include <Entropy.h>

void setup()
{
  Serial.begin(115200);
  Entropy.Initialize();
}

void loop()
{
  Serial.println(Entropy.random());
}


Google Code has implemented a change that prevents me from placing a zip file containing the library on the sites Download page; however, I have placed such a zip file on a Google Drive and it is linked from the wiki page.  You can also obtain the library by using the more traditional google code interface (git, svn, etc...)...
New true random number library available at: http://code.google.com/p/avr-hardware-random-number-generation/

Current version 1.0.1

Robin2

#1
Mar 20, 2014, 11:00 pm Last Edit: Mar 20, 2014, 11:03 pm by Robin2 Reason: 1
Cool.

Is the Entropy library a cousin of snippets-r-us http://forum.arduino.cc/index.php/topic,197229.0.html


70% or 80% of the code on here should be filed in the Entropy library.

...R

wanderson

I don't know if the question is serious or not, but no it is not related to that site.

The library makes use of the jitter associated with the cpu's timers to generate true random numbers.
New true random number library available at: http://code.google.com/p/avr-hardware-random-number-generation/

Current version 1.0.1

Robin2

It was not a serious comment.

You must be a younger or less decrepit curmudgeon than I am. :)

...R

wanderson

I am older than you might think; however, I have found it best when dealing with folks online to take their posts at face value! :-)
New true random number library available at: http://code.google.com/p/avr-hardware-random-number-generation/

Current version 1.0.1

wanderson

Is no one interested in testing this on ARM platforms?  I do not have any such platforms I can test this library on and would appreciate any help the community can provide.
New true random number library available at: http://code.google.com/p/avr-hardware-random-number-generation/

Current version 1.0.1

Robin2

I wonder if a new marketing strategy would help?

I.e. a more interesting / more understandable   title for the Thread?

...R

wanderson

Certainly possible, but with over 5,000 downloads of the library I would expect the title should attract its user base.  Of course, like most marketing concepts I could be wrong :-)
New true random number library available at: http://code.google.com/p/avr-hardware-random-number-generation/

Current version 1.0.1

Yes... I'll have some from my Digix in 2 -3 days..  I need  to set it up first.

Doc
--> WA7EMS <--
"The solution of every problem is another problem." -Johann Wolfgang von Goethe
I do answer technical questions PM'd to me with whatever is in my clipboard

Go Up