Lines Matching full:seed
64 unsigned int seed;
70 fprintf(stderr, "Usage: %s [<seed>]\n", _argv[0]);
73 env_seed = getenv("SEED");
75 seed = atoi(_argv[1]);
77 seed = atoi(env_seed);
79 seed = time(NULL);
166 srand(seed);
167 fprintf(stderr,"Testing random streams... Random seed: %u (%.4X)\n", seed, rand() % 65536);
195 fprintf(stderr,"ec_tell() changed after ec_enc_done(): %i instead of %i (Random seed: %u)\n",
196 ec_tell(&enc),tell_bits,seed);
201 fprintf (stderr, "ec_tell() lied, there's %i bytes instead of %d (Random seed: %u)\n",
202 ec_range_bytes(&enc), (tell_bits+7)/8,seed);
208 "Tell mismatch between encoder and decoder at symbol %i: %i instead of %i (Random seed: %u).\n",
209 0,ec_tell_frac(&dec),tell[0],seed);
215 "Decoded %i instead of %i with ft of %i at position %i of %i (Random seed: %u).\n",
216 sym,data[j],ft,j,sz,seed);
221 "Tell mismatch between encoder and decoder at symbol %i: %i instead of %i (Random seed: %u).\n",
222 j+1,ec_tell_frac(&dec),tell[j+1],seed);
269 fprintf(stderr,"tell() lied, there's %i bytes instead of %d (Random seed: %u)\n",
270 ec_range_bytes(&enc),(ec_tell(&enc)+7)/8,seed);
276 "Tell mismatch between encoder and decoder at symbol %i: %i instead of %i (Random seed: %u).\n",
277 0,ec_tell_frac(&dec),tell[0],seed);
308 "Decoded %i instead of %i with logp1 of %i at position %i of %i (Random seed: %u).\n",
309 sym,data[j],logp1[j],j,sz,seed);
316 "Tell mismatch between encoder and decoder at symbol %i: %i instead of %i (Random seed: %u).\n",
317 j+1,ec_tell_frac(&dec),tell[j+1],seed);