summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2005-12-13Sync from gnulib.Paul Eggert
2005-12-13(_Bool): Resurrect the "#if !@HAVE__BOOL@" check, toPaul Eggert
work around compilers that have a (possibly-broken) _Bool but lack a working <stdbool.h>.
2005-12-13(AC_HEADER_STDBOOL): Check for buggy compiler thatPaul Eggert
has _Bool but mishandles _Bool |= _Bool.
2005-12-12Install a more-conservative approach for sort -R.Paul Eggert
2005-12-12(struct irand_state, irand_init, irand32, irand_mod): Moved back here,Paul Eggert
from rand-isaac.c.
2005-12-12(struct irand_state, irand_init, irand32, irand_mod): Move to shred.c.Paul Eggert
2005-12-12(EXTRA_DIST): Add rand-isaac.c.Paul Eggert
2005-12-12(sort invocation): Clarify explanation ofPaul Eggert
--random-sort, and use a simpler example.
2005-12-12Clarify sort -R.Paul Eggert
2005-12-12Add src/rand-isaac.c.Paul Eggert
2005-12-12Remove. All uses now simply include rand-isaac.c.Paul Eggert
2005-12-12Mention shred_SOURCES and sort_SOURCES, too.Paul Eggert
2005-12-12Use a more-conservative but slower approach for sort -R.Paul Eggert
2005-12-12Include rand-isaac.c rather than rand-isaac.h.Paul Eggert
Don't include md5.h; it wasn't needed. (struct keyfield): Rename random_hash to random, for consistency with the other member names. All uses changed. (usage): Tweak wording to mention STRING for --seed option. (short_options): Rorder for consistency with other programs. (rand_state): Now a struct, not a pointer to one. All uses changed. (HASH_WORDS, HASH_SIZE): Remove. (get_hash): Remove comments around resbuf size, since we can assume C89. Use a "more-kosher" (but slower) approach of invoking isaac_refill. (keycompare): Adjust to the new get_hash. Add a FIXME. (badfieldspec): Omit recently-introduced comment; it isn't needed. (main): Don't set need_random simply because gkey has it set; that doesn't necessarily mean we'll need random numbers. Redo seeding to match new get_hash approach.
2005-12-12Include rand-isaac.c rather than rand-isaac.h.Paul Eggert
(fillrand, dopass, main): Undo previous change.
2005-12-12Revert to what used to be in shred.c, withoutPaul Eggert
changing it to allow for varying numbers of words in the state. Alter so that we include rand-isaac.c directly rather than compiling it and linking to it. Don't include config.h or system.h; that's the includer's responsibility. (ISAAC_LOG, ISAAC_WORDS, ISAAC_BYTES, struct isaac_state, ind): (isaac_step, struct irand_state): Resurrect these, with the same defns that used to be in shred.c. (ISAAC_SIZE, isaac_new, isaac_copy): Remove. (isaac_refill, isaac_seed_start, isaac_seed_data, irand_init, irand32): static again. (struct isaac_state, isaac_refill, isaac_mix, isaac_init): (isaac_seed_start, isaac_seed_data, isaac_seed_finish, isaac_seed): (irand_init, irand32, irand_mod): Number of words is constant again.
2005-12-12(noinst_HEADERS): Remove rand-isaac.h.Paul Eggert
2005-12-10*** empty log message ***Jim Meyering
2005-12-10(noinst_HEADERS): Add rand-isaac.h.Jim Meyering
2005-12-10*** empty log message ***Jim Meyering
2005-12-10Cleaner:Jim Meyering
Make the local an `int' instead.
2005-12-10*** empty log message ***Jim Meyering
2005-12-10Avoid shred segfault on 64-bit systems.Jim Meyering
(isaac_refill): Don't try to negate a local of type uint32_t. Convert it to int32_t first.
2005-12-10*** empty log message ***Jim Meyering
2005-12-10Mention sort's new options.Jim Meyering
2005-12-10*** empty log message ***Jim Meyering
2005-12-10* src/rand-isaac.h (isaac_mix): Remove declaration.Jim Meyering
2005-12-10* src/rand-isaac.c (isaac_mix): Declare to be static.Jim Meyering
Mark all other functions as `extern' so the tight-scope part of `make distcheck' passes once again. * src/rand-isaac.h (isaac_mix): Remove declaration.
2005-12-10*** empty log message ***Jim Meyering
2005-12-10*** empty log message ***Jim Meyering
2005-12-10(get_hash): Change position of `*' in parameter type to conform with convention.Jim Meyering
(main): Split a long line so it fits in 80 columns.
2005-12-10*** empty log message ***Jim Meyering
2005-12-10Don't include gethrxtime.h. No longer needed.Jim Meyering
2005-12-10(keycompare): Remove stray SPACE before TAB that wasJim Meyering
causing `make distcheck' to fail.
2005-12-10*** empty log message ***Jim Meyering
2005-12-10(TESTS): Add sort-rand.Jim Meyering
2005-12-10*** empty log message ***Jim Meyering
2005-12-10Add a basic test of the new options.Jim Meyering
2005-12-10Add sort -R.Paul Eggert
2005-12-10(sort invocation): Add --random-sort (-R) and --seed.Paul Eggert
2005-12-10(short_options, long_options, WORDS, keycompare, main):Paul Eggert
(usage): Add options --random-sort and --seed to implement a random shuffle. Include md5.h and rand-isaac.h. (get_hash): New function. (rand_state): New var. (HASH_WORDS, HASH_SIZE): New macros.
2005-12-10Include rand-isaac.h. Move ISAAC code to rand-isaac.c.Paul Eggert
(fillrand, main): Adjust to the fact that the state size is now runtime-configurable.
2005-12-10(sort_LDADD): Add $(LIB_GETHRXTIME).Paul Eggert
(shred_SOURCES, sort_SOURCES): New macros, so we compile rand-isaac.c.
2005-12-10New file, containing ISAAC code that was in shred.c.Paul Eggert
Make state size runtime-configurable. (isaac_new, isaac_copy): New functions.
2005-12-10Move ISAAC code out of shred.c.Paul Eggert
2005-12-09add commentsJim Meyering
2005-12-09Add test for dd iflags=noatime.Paul Eggert
2005-12-09*** empty log message ***Jim Meyering
2005-12-09(usage): Mention white space vs -b and -t options.Jim Meyering
From The Wanderer.
2005-12-09*** empty log message ***Jim Meyering