Grand Blanc, MI, USA
Offline
Faraday Member
Karma: 47
Posts: 2567
"We're a proud service of the Lost Electricity Reclamation Agency"
|
 |
« Reply #30 on: June 16, 2012, 09:13:44 am » |
@wanderson, I did some previous random number testing and used an SD card to capture the output, so I didn't have to dedicate a PC to the task. Would that be acceptable?
|
|
|
|
|
Logged
|
|
|
|
|
Dallas, Texas
Offline
God Member
Karma: 1
Posts: 689
Old, decrepit curmugeon
|
 |
« Reply #31 on: June 16, 2012, 09:37:01 am » |
@wanderson, I did some previous random number testing and used an SD card to capture the output, so I didn't have to dedicate a PC to the task. Would that be acceptable?
Very much so, I didn't want to restrict people to hardware they may not have, but if you have such hardware it makes it somewhat easier to test. Please post the information (and sketch used) here if you can. Thank you!
|
|
|
|
|
Logged
|
|
|
|
|
Grand Blanc, MI, USA
Offline
Faraday Member
Karma: 47
Posts: 2567
"We're a proud service of the Lost Electricity Reclamation Agency"
|
 |
« Reply #32 on: June 16, 2012, 02:02:44 pm » |
@wanderson, have a look at the sketch here, and let me know what you think: https://github.com/JChristensen/entropyTest
|
|
|
|
|
Logged
|
|
|
|
|
Dallas, Texas
Offline
God Member
Karma: 1
Posts: 689
Old, decrepit curmugeon
|
 |
« Reply #33 on: June 16, 2012, 02:32:52 pm » |
I don't see anything that should interfere with the Entropy library, though my experience with using the String type on the arduino has been memory leaks, or at least behavior that made me believe memory leaks were occurring. I would be curious as to how long it would be able to run. It definitely looks like a useful way to collect data for those who are unwilling/unable to use a computer to capture the data. Thanks for running tests!
|
|
|
|
|
Logged
|
|
|
|
|
Grand Blanc, MI, USA
Offline
Faraday Member
Karma: 47
Posts: 2567
"We're a proud service of the Lost Electricity Reclamation Agency"
|
 |
« Reply #34 on: June 16, 2012, 02:42:01 pm » |
I have also had difficulties with Strings in the past, but there were improvements in 1.0, so I thought I'd give it another go. My expectation would be that it should be able to run pretty much indefinitely. I have two SD breakout boards, I should be able to get both going here shortly. I'll let them run for 24 hours or so, then get the data to you.
|
|
|
|
|
Logged
|
|
|
|
|
Dallas, Texas
Offline
God Member
Karma: 1
Posts: 689
Old, decrepit curmugeon
|
 |
« Reply #35 on: June 18, 2012, 06:46:04 am » |
Here are the test results so far. Just a reminder, that while so far the test results have been good, this library really needs a lot more testing on a lot more chips--even chip types that have already been tested. Please consider, running an arduino overnight running this test code and capturing the output. Then email me the output or attach it to a reply to this thread along with information on the type of arduino you ran it on and the text on the arduino chip. Any assistance on this would be greatly appreciated! #include <Entropy.h>
void setup() { Serial.begin(115200); Entropy.Initialize(); }
void loop() { Serial.println(Entropy.random()); }
And here are the latest test results: | ID | Tester | Device | Chip | Date Code | Type | Sample Size | Entropy | Chi square | P-value | Mean | S.C.C. | Comments | | 001 | wandrson | Arduino Uno R3 | ATMEGA328p-PU | 1153 | DIP | 1,000,000 | 7.999797 | 281.39 | 0.1231 | 127.5803 | 0.000811 | | | 002 | wandrson | Arduino Uno R3 | ATMEGA328p-PU | 1107 | DIP | 1,000,000 | 7.999819 | 251.38 | 0.5524 | 127.4403 | 0.000379 | | | 003 | wandrson | Arduino Uno | ATMEGA328p-MU | 1103 | SMD | 1,000,000 | 7.999809 | 265.27 | 0.3163 | 127.4823 | 0.001646 | | | 004 | wandrson | Arduino Mega R3 | ATMEGA2560-16AU | 1131 | SMD | 1,000,000 | 7.999813 | 258.51 | 0.4268 | 127.5548 | 0.000069 | | | 005 | wandrson | Adafruit ATmega32u4 breakout board | MEGA32U4-AU | 1038 | SMD | 1,000,000 | 7.999811 | 261.87 | 0.3703 | 127.4697 | 0.001247 | | | 006 | pYro_65 | Clone mega | ATMEGA2560-16AU | 1110 | SMD | 809,984 | 7.999729 | 304.09 | 0.0189 | 127.5027 | -0.000090 | | | 007 | wandrson | Sparkfun AVR/Stick | TINY85-20SU | 1023 | SMD | 1,000,000 | 7.999826 | 240.63 | 0.7321 | 127.5975 | 0.000831 | | 008 | wandrson | Arduino NG/Rev C | ATMEGA168-20PU | 0701 | DIP | 1,000,000 | 7.999808 | 265.59 | 0.3114 | 127.3246 | 0.000910 | | 009 | Chagrin | Seeeduino | ATMEGA328P-AU | 1040 | SMD | 1,336,360 | 7.999865 | 250.35 | 0.5704 | 127.6595 | 0.000431 | | 010 | Chagrin | Seeeduino Mega v1.23 | ATMEGA1280-16AU | 0846 | SMD | 1,293,500 | 7.999861 | 248.24 | 0.6074 | 127.5377 | -0.000420 | | 011 | wandrson | Arduino NG/Rev C | ATMEGA168-20PU | 0701 | DIP | 1,000,000 | 7.999815 | 256.57 | 0.4606 | 127.4765 | 0.0000042 | | 012 | wandrson | Arduino Mega R3 | ATMEGA2560-16AU | 1126 | SMD | 1,000,000 | 7.999843 | 217.74 | 0.9562 | 127.5359 | 0.000320 | | 013 | wandrson | Arduino Leonardo | ATMEGA168-20PU | 1039 | SMD | 1,000,000 | 7.999788 | 293.57 | 0.0487 | 127.4357 | 0.000022 | | 014 | wandrson | Breadboard tiny, 16MHz (internal PLL) | ATTINY85-20PU | 1211 | DIP | 106,744 | 7.998190 | 267.92 | 0.2768 | 127.3796 | 0.009237 | | 015 | wandrson | Breadboard tiny, 16MHz (internal PLL) | ATTINY85-20PU | 1211 | DIP | 102,640 | 7.998103 | 270.08 | 0.2468 | 127.6913 | -0.001888 | | 016 | wandrson | Breadboard tiny, 16MHz (internal PLL) | ATTINY85-20PU | 1211 | DIP | 100,000 | 7.998026 | 274.12 | 0.1960 | 127.4961 | 0.007423 | | 017 | wandrson | Breadboard tiny, 16MHz (internal PLL) | ATTINY85-20PU | 1211 | DIP | 277,388 | 7.999275 | 277.33 | 0.1610 | 127.2689 | 0.003250 | | 018 | wandrson | Breadboard tiny, 16MHz (internal PLL) | ATTINY85-20PU | 1211 | DIP | 100,864 | 7.986159 | 3084.67 | 0.0000 | 127.7945 | 0.032045 | | 019 | wandrson | Breadboard tiny, 16MHz (internal PLL) | ATTINY85-20PU | 1211 | DIP | 111,076 | 7.998312 | 259.45 | 0.4108 | 127.7697 | 0.000617 | | 020 | wandrson | Breadboard tiny, 16MHz (internal PLL) | ATTINY85-20PU | 1211 | DIP | 101,464 | 7.997946 | 288.95 | 0.0707 | 127.5182 | 0.006300 | | 021 | wandrson | Breadboard tiny, 16MHz (internal PLL) | ATTINY85-20PU | 1211 | DIP | 287,808 | 7.999319 | 271.78 | 0.2246 | 127.3042 | 0.002162 | | 022 | wandrson | Breadboard tiny, 16MHz (internal PLL) | ATTINY85-20PU | 1211 | DIP | 262,312 | 7.999314 | 249.99 | 0.5767 | 127.7828 | 0.001686 | | 023 | wandrson | Arduino NG/Rev | ATMEGA168-20PU | 0624 | DIP | 539,748 | 7.999642 | 267.92 | 0.2769 | 127.6716 | 0.000370 | | 024 | wandrson | Arduino Pro Mini 3v3 | ATMEGA328P-AU | 1208 | SMD | 1,004,352 | 7.999785 | 298.99 | 0.0304 | 127.5872 | 0.001192 | | 025 | wandrson | Breadboard tiny, 16MHz (internal PLL) | ATMEGA328P-AU | 1211 | DIP | 111,504 | 7.998213 | 275.62 | 0.1791 | 127.2366 | -0.003130 | | 026 | wandrson | Breadboard tiny, 16MHz (internal PLL) | ATMEGA328P-AU | 1211 | DIP | 115,728 | 7.998499 | 240.81 | 0.7292 | 127.4722 | -0.001927 | | 027 | wandrson | ATmega1284p on STK500 | ATMEGA1284P-PU | 1209 | DIP | 100,976 | 7.998129 | 262.24 | 0.3642 | 127.3669 | -0.001081 | | 028 | P. Stoffregen | Teensy++ 2.0, 3v 8MHz | AT90USB1287 | 1039 | SMD | 254,280 | 7.999227 | 274.24 | 0.2188 | 127.1336 | 0.001923 | | 029 | P. Stoffregen | Teensy++ 1.0, 5v 16MHz | AT90USB646 | 0849 | SMD | 343,032 | 7.999508 | 233.23 | 0.8322 | 127.6864 | -0.001012 | | 030 | P. Stoffregen | Teensy++ 2.0, 5v 16MHz | AT90USB1286 | 0932 | SMD | 280,068 | 7.999329 | 260.12 | 0.3996 | 127.6441 | 0.002521 | | 031 | J. Christensen | Arduino UNO SMD Edition | ATmega328P-MU | 1034 | SMD | 650,176 | 7.999712 | 259.91 | 0.4030 | 127.3920 | -0.000527 | | 032 | J. Christensen | Breadboard Arduino close, 16MHz xtal | ATmega328P-PU | 1053 | DIP | 670,112 | 7.999712 | 267.48 | 0.2832 | 127.5512 | 0.000849 | | 033 | wandrson | ATmega1284p on STK500 | ATMEGA1284P-PU | 1211 | DIP | 484,292 | 7.999649 | 235.48 | 0.8045 | 127.4796 | -0.000014 | | 034 | wandrson | Breadboard tiny, 8mhz (internal oscillator) | ATTINY85-20PU | 1211 | DIP | 104,648 | 7.997952 | 297.51 | 0.0347 | 127.7577 | -0.001279 | | 035 | wandrson | Breadboard tiny, 8mhz (internal oscillator) | ATTINY85-20PU | 1211 | DIP | 310,560 | 7.999305 | 299.36 | 0.0294 | 127.4556 | -0.000165 | | 036 | wandrson | Breadboard tiny, 8mhz (internal oscillator) | ATTINY85-20PU | 1211 | DIP | 106,376 | 7.998142 | 274.67 | 0.1897 | 127.1853 | 0.001980 |
All of the above tests were performed on different chips. No repeated tests on the same chip, unless otherwise noted. Since test number 018 failed so spectacularly, I retested that same chip in test number 022. Tests 014 - 022, 025-026, and 034-036 were performed using arduino-tiny-0100-0013.zip from http://code.google.com/p/arduino-tiny/. Test 027 and 032 was performed using Mighty 1284P core files with the original bootloader.
|
|
|
|
« Last Edit: June 19, 2012, 10:08:02 am by wanderson »
|
Logged
|
|
|
|
|
Dallas, Texas
Offline
God Member
Karma: 1
Posts: 689
Old, decrepit curmugeon
|
 |
« Reply #36 on: June 21, 2012, 07:51:51 am » |
Here are some additional test results: | ID | Tester | Device | Chip | Date Code | Type | Sample Size | Entropy | Chi square | P-value | Mean | S.C.C. | Comments | | 037 | wandrson | Breadboard tiny, 8mhz (internal oscillator) | ATTINY85-20PU | 1211 | DIP | 102,412 | 7.998406 | 225.98 | 0.9045 | 127.1473 | 0.000618 | | 038 | wandrson | Breadboard tiny, 8mhz (internal oscillator) | ATTINY85-20PU | 1211 | DIP | 100,368 | 7.998131 | 260.48 | 0.3935 | 127.4403 | -0.004133 | | 039 | wandrson | Breadboard tiny, 8mhz (internal oscillator) | ATTINY85-20PU | 1211 | DIP | 101,964 | 7.998389 | 227.51 | 0.8914 | 127.0540 | -0.004832 | | 040 | wandrson | Breadboard tiny, 8mhz (internal oscillator) | ATTINY85-20PU | 1211 | DIP | 236,136 | 7.999246 | 247.63 | 0.6178 | 127.3000 | -0.002023 | | 041 | wandrson | Breadboard tiny, 8mhz (internal oscillator) | ATTINY85-20PU | 1211 | DIP | 100,144 | 7.998202 | 249.55 | 0.5846 | 127.8017 | 0.000526 | | 042 | wandrson | Breadboard tiny, 8mhz (internal oscillator) | ATTINY85-20PU | 1211 | DIP | 107,092 | 7.998095 | 282.90 | 0.1108 | 127.4241 | 0.001396 | | 043 | wandrson | Breadboard tiny, 8mhz (internal oscillator) | ATTINY85-20PU | 1211 | DIP | 100,168 | 7.998309 | 234.68 | 0.8146 | 127.5922 | 0.002843 | | 044 | J. Christensen | Arduino UNO SMD Edition | ATmega328P-MU | 1034 | SMD | 1,000,000 | 7.999809 | 264.47 | 0.3286 | 127.3932 | -0.000010 | | 045 | J. Christensen | Breadboard Arduino close, 16MHz xtal | ATmega328P-PU | 1107 | DIP | 1,000,000 | 7.999792 | 289.05 | 0.0702 | 127.5088 | 0.000577 | | 046 | wandrson | Breadboard 1284p, 16mhz xtal | ATTINY1284P-PU | 1211 | DIP | 446,972 | 7.999577 | 262.65 | 0.3575 | 127.4290 | -0.002572 | | 047 | wandrson | Breadboard 1284p, 8mhz xtal | ATTINY1284P-PU | 1211 | DIP | 109,740 | 7.998350 | 251.61 | 0.5483 | 127.5261 | 0.001790 | | 048 | wandrson | Breadboard 1284p, 8mhz xtal | ATTINY1284P-PU | 1211 | DIP | 318,432 | 7.999402 | 264.35 | 0.3305 | 127.5598 | 0.001933 | | 049 | wandrson | Breadboard tiny, 8mhz (internal oscillator) | ATTINY84-20PU | 1010 | DIP | 278,960 | 7.999355 | 248.84 | 0.5969 | 127.8017 | -0.003964 | | 050 | wandrson | Breadboard tiny, 1mhz (internal oscillator) | ATTINY84-20PU | 1010 | DIP | 100,288 | 7.998213 | 249.05 | 0.5933 | 127.5756 | -0.003266 | | 051 | wandrson | Breadboard tiny, 1mhz (internal oscillator) | ATTINY84-20PU | 1010 | DIP | 100,020 | 7.998360 | 226.46 | 0.9009 | 127.3991 | -0.002293 | | 052 | wandrson | Breadboard tiny, 8mhz (internal oscillator) | ATTINY84-20PU | 1010 | DIP | 102,916 | 7.998466 | 218.49 | 0.9527 | 127.3037 | -0.002528 | | 053 | wandrson | Breadboard tiny, 8mhz (internal oscillator) | ATTINY84-20PU | 1010 | DIP | 265,420 | 7.999419 | 213.39 | 0.9728 | 127.6136 | 0.000817 | | 054 | Coding Badly | Arduino UNO R2 | ATMEGA328P-PU | 1107 | DIP | 839,988 | 7.999778 | 257.95 | 0.4367 | 127.3391 | -0.003102 | | 055 | wandrson | Breadboard 1284p, 8mhz xtal | ATTINY1284P-PU | 1211 | DIP | 649,728 | 7.999697 | 273.19 | 0.2071 | 127.4459 | -0.001684 | | 056 | wandrson | Breadboard tiny, 1mhz (internal oscillator) | ATTINY84-20PU | 1010 | DIP | 102,860 | 7.998113 | 269.98 | 0.2483 | 127.5559 | 0.005196 | | 057 | wandrson | Breadboard tiny, 1mhz (internal oscillator) | ATTINY84-20PU | 1010 | DIP | 96,068 | 7.997948 | 274.55 | 0.1911 | 127.4590 | 0.005131 | | 058 | wandrson | Breadboard tiny, 8mhz (internal oscillator) | ATTINY84-20PU | 1010 | DIP | 101,164 | 7.998136 | 262.13 | 0.3661 | 127.0534 | -0.004649 | | 059 | wandrson | Breadboard tiny, 8mhz (internal oscillator) | ATTINY45-20PU | 1211 | DIP | 284,072 | 7.999377 | 245.09 | 0.6610 | 127.3208 | -0.000006 | | 060 | wandrson | Breadboard tiny, 1mhz (internal oscillator) | ATTINY45-20PU | 1211 | DIP | 100,072 | 7.998263 | 240.50 | 0.7341 | 127.3423 | -0.003373 | | 061 | wandrson | Breadboard tiny, 16mhz (internal oscillator) | ATTINY45-20PU | 1211 | DIP | 110,644 | 7.998224 | 272.66 | 0.2136 | 127.4735 | 0.002846 | | 062 | wandrson | Breadboard tiny, 1mhz (internal oscillator) | ATTINY45-20PU | 1211 | DIP | 100,912 | 7.998196 | 252.70 | 0.5289 | 127.3467 | 0.008878 | | 063 | wandrson | Breadboard tiny, 8mhz (internal oscillator) | ATTINY45-20PU | 1211 | DIP | 100,164 | 7.998027 | 273.66 | 0.2016 | 127.2111 | 0.002015 | | 064 | wandrson | Breadboard tiny, 16mhz (internal oscillator) | ATTINY45-20PU | 1211 | DIP | 214,760 | 7.999182 | 243.37 | 0.6891 | 127.4248 | -0.005771 | | 065 | wandrson | Breadboard tiny, 1mhz (internal oscillator) | ATTINY45-20PU | 1211 | DIP | 103,656 | 7.998399 | 229.73 | 0.8704 | 127.4767 | -0.003893 | | 066 | wandrson | Breadboard tiny, 8mhz (internal oscillator) | ATTINY45-20PU | 1211 | DIP | 118,676 | 7.998584 | 232.00 | 0.8463 | 127.3653 | -0.008254 | | 067 | wandrson | Breadboard tiny, 16mhz (internal oscillator) | ATTINY45-20PU | 1211 | DIP | 107,920 | 7.998366 | 244.52 | 0.6704 | 127.2434 | -0.007688 | | 068 | wandrson | Breadboard tiny, 1mhz (internal oscillator) | ATTINY45-20PU | 1211 | DIP | 101,716 | 7.998237 | 247.82 | 0.6147 | 127.2760 | -0.000026 | | 069 | wandrson | Breadboard tiny, 8mhz (internal oscillator) | ATTINY45-20PU | 1211 | DIP | 231,740 | 7.999281 | 230.80 | 0.8594 | 127.5449 | -0.000518 | | 070 | wandrson | Breadboard tiny, 16mhz (internal oscillator) | ATTINY45-20PU | 1211 | DIP | 123,820 | 7.998312 | 289.80 | 0.0662 | 126.9300 | -0.003889 | | 071 | P. Stoffregen | Teensy2 5v, 16MHz | MEGA32U4-AU | 0945 | SMD | 383,380 | 7.999503 | 264.98 | 0.3208 | 127.6570 | 0.001401 | | 072 | Elvind Triel | Arduino Duemilanove | ATMEGA328P-PU | 0948 | DIP | 1,226,256 | 7.999859 | 239.46 | 0.7495 | 127.6417 | -0.000672 |
All of the above tests were performed on different chips. No repeated tests on the same chip, unless otherwise noted. Since test number 018 failed so spectacularly, I retested that same chip in test number 022. Tests 014 - 022, 025-026, 034-043, 049-053, and 056-070 were performed using arduino-tiny-0100-0013.zip from http://code.google.com/p/arduino-tiny/. Test 027, 032, 046-048, and 055 were performed using Mighty 1284P core files.
|
|
|
|
« Last Edit: June 27, 2012, 03:27:58 pm by wanderson »
|
Logged
|
|
|
|
|
0
Offline
Sr. Member
Karma: 20
Posts: 426
Always making something...
|
 |
« Reply #37 on: June 29, 2012, 05:02:40 pm » |
I have also had difficulties with Strings in the past, but there were improvements in 1.0, so I thought I'd give it another go. My expectation would be that it should be able to run pretty much indefinitely.
It should run indefinitely with the String implementation (developed in Teensyduino) which I tried to contribute for Arduino 1.0. Sadly, the String that made it into Arduino has numerous changes that defeat much of the careful optimization work I did. My attempt to fix memory allocation problems was also not used. If it crashes on an Arduino board, could you please give the same sketch a try on a Teensy?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 5
|
 |
« Reply #38 on: October 08, 2012, 03:04:49 pm » |
Howdy, It's 4 months later, and I am wondering, are you still looking for test results? I have a few chips I could run this on.
|
|
|
|
|
Logged
|
|
|
|
|
Dallas, Texas
Offline
God Member
Karma: 1
Posts: 689
Old, decrepit curmugeon
|
 |
« Reply #39 on: October 08, 2012, 03:09:39 pm » |
Yes, more results would be helpful.
|
|
|
|
|
Logged
|
|
|
|
|
|