Pages: [1]   Go Down
Author Topic: Update to the Entropy Library  (Read 933 times)
0 Members and 1 Guest are viewing this topic.
Dallas, Texas
Offline Offline
God Member
*****
Karma: 31
Posts: 887
Old, decrepit curmugeon
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
#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...)...

* Entropy.0.7.zip (180.93 KB - downloaded 16 times.)
Logged

New true random number library available at: http://code.google.com/p/avr-hardware-random-number-generation/

Current version 1.0.1

UK
Offline Offline
Tesla Member
***
Karma: 125
Posts: 7225
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
« Last Edit: March 20, 2014, 05:03:54 pm by Robin2 » Logged

Dallas, Texas
Offline Offline
God Member
*****
Karma: 31
Posts: 887
Old, decrepit curmugeon
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

New true random number library available at: http://code.google.com/p/avr-hardware-random-number-generation/

Current version 1.0.1

UK
Offline Offline
Tesla Member
***
Karma: 125
Posts: 7225
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It was not a serious comment.

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

...R
Logged

Dallas, Texas
Offline Offline
God Member
*****
Karma: 31
Posts: 887
Old, decrepit curmugeon
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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! :-)
Logged

New true random number library available at: http://code.google.com/p/avr-hardware-random-number-generation/

Current version 1.0.1

Dallas, Texas
Offline Offline
God Member
*****
Karma: 31
Posts: 887
Old, decrepit curmugeon
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

New true random number library available at: http://code.google.com/p/avr-hardware-random-number-generation/

Current version 1.0.1

UK
Offline Offline
Tesla Member
***
Karma: 125
Posts: 7225
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I wonder if a new marketing strategy would help?

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

...R
Logged

Dallas, Texas
Offline Offline
God Member
*****
Karma: 31
Posts: 887
Old, decrepit curmugeon
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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 :-)
Logged

New true random number library available at: http://code.google.com/p/avr-hardware-random-number-generation/

Current version 1.0.1

Anaheim CA.
Offline Offline
Faraday Member
**
Karma: 47
Posts: 2892
...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Doc
Logged

--> 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

Pages: [1]   Go Up
Jump to: