Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 1:47c03f50ad79, committed 2019-03-31
- Comitter:
- Takkun
- Date:
- Sun Mar 31 06:19:04 2019 +0000
- Parent:
- 0:3e4357746fe2
- Commit message:
- Expand the effective number of bits
Changed in this revision
| Mseq.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/Mseq.cpp Thu Mar 28 07:14:57 2019 +0000
+++ b/Mseq.cpp Sun Mar 31 06:19:04 2019 +0000
@@ -27,6 +27,45 @@
case 3:
coef = 5;
break;
+ case 4:
+ coef = 9;
+ break;
+ case 5:
+ coef = 9;
+ break;
+ case 6:
+ coef = 33;
+ break;
+ case 7:
+ coef = 65;
+ break;
+ case 8:
+ coef = 113;
+ break;
+ case 9:
+ coef = 33;
+ break;
+ case 10:
+ coef = 129;
+ break;
+ case 11:
+ coef = 513;
+ break;
+ case 12:
+ coef = 83;
+ break;
+ case 13:
+ coef = 27;
+ break;
+ case 14:
+ coef = 43;
+ break;
+ case 15:
+ coef = 16385;
+ break;
+ case 16:
+ coef = 40977;
+ break;
}
reset();
@@ -41,7 +80,7 @@
void Mseq::reset()
{
srand((unsigned int)time(NULL));
- reg = (rand() % (n-1));
+ reg = (rand() % (n-1)) + 1;
}