URL
https://opencores.org/ocsvn/eco32/eco32/trunk
Subversion Repositories eco32
Compare Revisions
- This comparison shows the changes necessary to convert path
/eco32/tags/eco32-0.23/doc/magic
- from Rev 6 to Rev 157
- ↔ Reverse comparison
Rev 6 → Rev 157
/magic
0,0 → 1,20
0: 0x3AE82DD4 EXEC_MAGIC (obsolete) |
1: 0x44FCB67D SUPER_MAGIC |
2: 0x1AA09232 EXEC_MAGIC |
3: 0x0412CF03 AR_MAGIC |
4: 0x8F0B45C0 |
5: 0xF5A5F2F9 |
6: 0xE7B79BFE |
7: 0x3AECCFDF |
8: 0xFB23146C |
9: 0xA883CF35 |
10: 0x8F953A8A |
11: 0xC053767B |
12: 0x42DE85D8 |
13: 0xEB5DC731 |
14: 0x37B239D6 |
15: 0xB1CA9ED7 |
16: 0x0E134604 |
17: 0x374B16ED |
18: 0x090C25E2 |
19: 0x0FABE4F3 |
/random.c
0,0 → 1,32
/* |
* random.c -- a random generator to generate magic numbers |
*/ |
|
|
#include <stdio.h> |
#include <stdlib.h> |
#include <string.h> |
|
|
unsigned long currentRandom = 0x3AE82DD4; |
|
|
void nextRandom(void) { |
currentRandom = 3141592621U * currentRandom + 12345; |
} |
|
|
int main(int argc, char *argv[]) { |
int n, i; |
|
if (argc != 2) { |
printf("Usage: %s <number>\n", argv[0]); |
return 1; |
} |
n = atoi(argv[1]); |
for (i = 0; i < n; i++) { |
printf("%3d: 0x%08lX\n", i, currentRandom); |
nextRandom(); |
} |
return 0; |
} |