File size: 8,374 Bytes
806d4b5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306

#help_index "Misc/TOS/God;God/TOS"

#define NIST_TIME_OFFSET        (tos_nist_offset-local_time_offset/CDATE_FREQ)
#define NIST_TIME_TO_SWITCH     3

#define GSRC_NIST_BEACON        0
#define GSRC_HOTBITS            1
#define GSRC_ANU_NIST           2
#define GSRC_GOOGLE             3
#define GSRC_RANDOM_ORG         4
#define GSRC_RANDOM_NUMBERS_INFO 5
#define GSRC_PASSWORD           6
#define GSRC_GENERATE_DATA      7
#define GSRC_VIRTUAL_NOTARY     8
#define GSRC_TIMER              9

#define GBP_SHORT       0
#define GBP_MEDIUM      1
#define GBP_LONG        2

class CRandExtDec5Form
{
  I64   timestamp;
  U8    rnd0[512]       format "$DA-P,A=\"5 Decimal Digits from Hex:%s\"$\n";
  U8    rnd1[512];
  U8    rnd2[512];
  U8    rnd3[512];
  U8    rnd4[512];
  U8    rnd5[512];
  U8    rnd6[512];
  U8    rnd7[512];
  U8    rnd8[512];
  U8    rnd9[512];
  U8    rndA[512];
  U8    rndB[512];
  I64   cert;
};

class CHexWordForm
{
  I64   timestamp;
  U8    rnd0[512]       format "$DA-P,A=\"Hex Word Indices#0:%s\"$\n";
  U8    rnd1[512]       format "$DA-P,A=\"Hex Word Indices#1:%s\"$\n";
  U8    rnd2[512]       format "$DA-P,A=\"Hex Word Indices#2:%s\"$\n";
  U8    rnd3[512]       format "$DA-P,A=\"Hex Word Indices#3:%s\"$\n";
  U8    rnd4[512]       format "$DA-P,A=\"Hex Word Indices#4:%s\"$\n";
  U8    rnd5[512]       format "$DA-P,A=\"Hex Word Indices#5:%s\"$\n";
  U8    rnd6[512]       format "$DA-P,A=\"Hex Word Indices#6:%s\"$\n";
  U8    rnd7[512]       format "$DA-P,A=\"Hex Word Indices#7:%s\"$\n";
  U8    rnd8[512]       format "$DA-P,A=\"Hex Word Indices#8:%s\"$\n";
  U8    rnd9[512]       format "$DA-P,A=\"Hex Word Indices#9:%s\"$\n";
  U8    rndA[512]       format "$DA-P,A=\"Hex Word Indices#A:%s\"$\n";
  U8    rndB[512]       format "$DA-P,A=\"Hex Word Indices#B:%s\"$\n";
  I64   cert;
};

class CNISTBeaconHexWordForm
{
  I64   timestamp       format "$DA,A=\"TimeStamp:%d\"$\n";
  U8    rnd0[512]       format "$DA-P,A=\"Hex Word Indices#0:%s\"$\n";
  U8    rnd1[512]       format "$DA-P,A=\"Hex Word Indices#1:%s\"$\n";
  U8    rnd2[512]       format "$DA-P,A=\"Hex Word Indices#2:%s\"$\n";
  U8    rnd3[512]       format "$DA-P,A=\"Hex Word Indices#3:%s\"$\n";
  U8    rnd4[512]       format "$DA-P,A=\"Hex Word Indices#4:%s\"$\n";
  U8    rnd5[512]       format "$DA-P,A=\"Hex Word Indices#5:%s\"$\n";
  U8    rnd6[512]       format "$DA-P,A=\"Hex Word Indices#6:%s\"$\n";
  U8    rnd7[512]       format "$DA-P,A=\"Hex Word Indices#7:%s\"$\n";
  U8    rnd8[512]       format "$DA-P,A=\"Hex Word Indices#8:%s\"$\n";
  U8    rnd9[512]       format "$DA-P,A=\"Hex Word Indices#9:%s\"$\n";
  U8    rndA[512]       format "$DA-P,A=\"Hex Word Indices#A:%s\"$\n";
  U8    rndB[512]       format "$DA-P,A=\"Hex Word Indices#B:%s\"$\n";
  I64   cert;
};

class CRandHex5Form
{
  I64   timestamp;
  U8    rnd0[512]       format "$DA-P-TRM,LEN=5,"
        "A=\"Line (5-Digit Hex):%5s\"$\n";
  U8    rnd1[512];
  U8    rnd2[512];
  U8    rnd3[512];
  U8    rnd4[512];
  U8    rnd5[512];
  U8    rnd6[512];
  U8    rnd7[512];
  U8    rnd8[512];
  U8    rnd9[512];
  U8    rndA[512];
  U8    rndB[512];
  I64   cert;
};

class CRandHex8Form
{
  I64   timestamp;
  U8    rnd0[512]       format "$DA-P-TRM,LEN=8,"
        "A=\"Line (8-Digit Hex):%8s\"$\n";
  U8    rnd1[512];
  U8    rnd2[512];
  U8    rnd3[512];
  U8    rnd4[512];
  U8    rnd5[512];
  U8    rnd6[512];
  U8    rnd7[512];
  U8    rnd8[512];
  U8    rnd9[512];
  U8    rndA[512];
  U8    rndB[512];
  I64   cert;
};

class CMoviesForm
{
  I64   timestamp;
  U8    rnd0[512]       format "$DA-P,"
        "A=\"Movie #1-100 (2 Decimal Digits from Hex):%s\"$\n";
  U8    rnd1[512];
  U8    rnd2[512];
  U8    rnd3[512];
  U8    rnd4[512];
  U8    rnd5[512];
  U8    rnd6[512];
  U8    rnd7[512];
  U8    rnd8[512];
  U8    rnd9[512];
  U8    rndA[512];
  U8    rndB[512];
  I64   cert;
};

class CPaintings100Form
{
  I64   timestamp;
  U8    rnd0[512]       format "$DA-P,"
        "A=\"Painting #00-99 (2 Decimal Digits from Hex):%s\"$\n";
  U8    rnd1[512];
  U8    rnd2[512];
  U8    rnd3[512];
  U8    rnd4[512];
  U8    rnd5[512];
  U8    rnd6[512];
  U8    rnd7[512];
  U8    rnd8[512];
  U8    rnd9[512];
  U8    rndA[512];
  U8    rndB[512];
  I64   cert;
};

class CPaintings1000Form
{
  I64   timestamp;
  U8    rnd0[512]       format "$DA-P,"
        "A=\"Painting #000-999 (3 Decimal Digits from Hex):%s\"$\n";
  U8    rnd1[512];
  U8    rnd2[512];
  U8    rnd3[512];
  U8    rnd4[512];
  U8    rnd5[512];
  U8    rnd6[512];
  U8    rnd7[512];
  U8    rnd8[512];
  U8    rnd9[512];
  U8    rndA[512];
  U8    rndB[512];
  I64   cert;
};

class CPoems100Form
{
  I64   timestamp;
  U8    rnd0[512]       format "$DA-P,"
        "A=\"Poems #00-99 (2 Decimal Digits from Hex):%s\"$\n";
  U8    rnd1[512];
  U8    rnd2[512];
  U8    rnd3[512];
  U8    rnd4[512];
  U8    rnd5[512];
  U8    rnd6[512];
  U8    rnd7[512];
  U8    rnd8[512];
  U8    rnd9[512];
  U8    rndA[512];
  U8    rndB[512];
  I64   cert;
};

class CMetallicaForm
{
  I64   timestamp;
  U8    rnd0[512]       format "$DA-P,"
        "A=\"Song #1-99 (2 Decimal Digits from Hex):%s\"$\n";
  U8    rnd1[512];
  U8    rnd2[512];
  U8    rnd3[512];
  U8    rnd4[512];
  U8    rnd5[512];
  U8    rnd6[512];
  U8    rnd7[512];
  U8    rnd8[512];
  U8    rnd9[512];
  U8    rndA[512];
  U8    rndB[512];
  I64   cert;
};

class CCertRandDec5Form
{
  I64   timestamp;
  U8    rnd0[512]       format "$DA-P,A=\"Line (Dec):%s\"$\n";
  U8    rnd1[512];
  U8    rnd2[512];
  U8    rnd3[512];
  U8    rnd4[512];
  U8    rnd5[512];
  U8    rnd6[512];
  U8    rnd7[512];
  U8    rnd8[512];
  U8    rnd9[512];
  U8    rndA[512];
  U8    rndB[512];
  I64   cert            format "$DA,A=\"Certificate:%d\"$\n";
};

class CGodVideoForm
{
  U8    title[STR_LEN]  format "$DA-P,A=\"Title:%s\"$\n";
  U8    serial[STR_LEN] format "$DA-P-TRM,LEN=11,A=\"SerialNum:%11s\"$\n";
  I64   min             format "$DA,A=\"Minutes:%d\"$\n";
  I64   sec             format "$DA,A=\"Seconds:%d\"$\n";
};

class CWebBibleForm
{
  U8    tag[STR_LEN]    format "$DA-P,A=\"Tag Text:%s\"$\n";
  U8    special[STR_LEN] format "$DA-P,A=\"Bible Passage:%s\"$\n";
  I64   min;
  I64   sec;
};

class CYouTubeForm
{
  U8    tag[STR_LEN]    format "$DA-P,A=\"Title:%s\"$\n";
  U8    special[STR_LEN] format "$DA-P-TRM,LEN=11,A=\"SerialNum:%11s\"$\n";
  I64   min             format "$DA,A=\"Minutes:%d\"$\n";
  I64   sec             format "$DA,A=\"Seconds:%d\"$\n";
};

class CImgurForm
{
  U8    tag[STR_LEN];
  U8    special[STR_LEN] format "$DA-P,A=\"SerialNum:%s\"$\n";
  I64   min             format "$DA,A=\"Width    :%d\"$\n";
  I64   sec             format "$DA,A=\"Height   :%d\"$\n";
};

class CWikipediaForm
{
  U8    tag[STR_LEN]    format "$DA-P,A=\"Tag Text:%s\"$\n";
  U8    special[STR_LEN] format "$DA-P,A=\"Index   :%s\"$\n";
  I64   min;
  I64   sec;
};

class CWebBookMarkForm
{
  U8    tag[STR_LEN]    format "$DA-P,A=\"Tag Text:%s\"$\n";
  U8    special[STR_LEN];
  I64   min;
  I64   sec;
};

DefineLstLoad("ST_FAMLY_PHOTOS","Family1_58-78\0Family2_78-86\0"
        "Family3_86-99\0Family4_99\0");

class CFamilyPhotoForm
{
  I64   volume          format "$LS,D=\"ST_FAMLY_PHOTOS\"$\n";
  I64   part            format "$DA,A=\"Part   :%d\"$\n";
  U8    picture[STR_LEN] format "$DA-P,A=\"Picture:%s\"$\n";
  I64   width           format "$DA,A=\"Width  :%d\"$\n";
  I64   height          format "$DA,A=\"Height :%d\"$\n";
};

class CBlogImgForm
{
  U8    picture[STR_LEN] format "$DA-P,A=\"Picture:%s\"$\n";
  I64   width           format "$DA,A=\"Width  :%d\"$\n";
  I64   height          format "$DA,A=\"Height :%d\"$\n";
};

extern U0 FreshenBlog();
extern U0 GodBooksPassageU32(U32 rand_u32,U8 *files_find_mask,
        U8 *file_mask="*",I64 len=512,I64 verbosity=GBP_MEDIUM);
extern I64 GodHeaderIns(U8 *type=NULL);
extern U0 GodVideoDigits(U8 *title,U8 *webpage,U8 *rnd,I64 digits,U8 *filename);
extern U0 GodVideoU32(U32 rand_u32,U8 *filename);
extern U0 GodWebIdx(U8 *title,U8 *webpage,U8 *rnd,I64 digits,U8 *filename)
extern U0 GodWordBatch(CHexWordForm *gm,I64 radix,I64 digits);
extern U8 *TOSBlogAbs(U8 *filename);
extern U0 TOSBookLines(U8 *book_filename,I64 book_lines,U8 *st,I64 num_lines,
        I64 radix,Bool modulo,Bool plus_one);
extern U0 TOSGodDoodle(I64 god_src,CNISTBeaconHexWordForm *gm=NULL);