Commit Graph

425 Commits

Author SHA1 Message Date
Andrey A. Chernov
f92c1adc15 My change, namely srandomdev() addition, was backed out even without
discussing with me, and I obviously disagree seeing that afterwards
(srandomdev() back out not fix any thing, it can only mask the problem).

So, back out the back out and return srandomdev().

People who have problems with repeated quotes should use -D fortune
option for debugging to see is the problem in (1) /dev/random initialization
or in (2) fortune code itself.

I will be glad to help, but I can't reproduce repeated quote situation
on my machine.

In either case found, (1) or (2) should be fixed instead of removing
srandomdev().
2005-07-23 18:24:47 +00:00
Greg Lehey
8af732d13c Use a random number to seed the random number generator. Goodby, Rush
Limbaugh.

This should have already worked properly if random(4) has been
initialized correctly, but it seems that this is frequently not the
case.  Instead, use the microsecond part of the current time as the
seed.
2005-07-23 01:46:50 +00:00
Poul-Henning Kamp
6dded714b5 Snoopy in quality of life. 2005-06-10 08:58:44 +00:00
Wilko Bulte
41fa5b81d2 When operating the diopter adjustment knob with your eye to the view-
finder, be careful not to put your fingers or fingernails in your eye.
                -- found in the users manual of the Nikon D2x camera,
                   a camera for professional photographers
%
2005-06-06 15:43:00 +00:00
Poul-Henning Kamp
98500a3693 Hand it to spaff, he knows how to say it:
Using encryption on the Internet is the equivalent of arranging
an armoured car to deliver credit card information from someone
living in a cardboard box to someone living on a park bench.
		-- Gene Spafford, Purdue University.
2005-05-29 19:29:19 +00:00
Poul-Henning Kamp
e1f74f27c1 Remove duplicate and attribute Weinbergs second law to the right weinberg. 2005-05-13 15:51:56 +00:00
Jens Schweikhardt
4f2795ff0e Nuke a corrupted duplicate.
Some white space and punctuation fixes.
2005-05-07 17:56:50 +00:00
Jens Schweikhardt
c770569c74 s/which/witch 2005-04-24 15:31:11 +00:00
Poul-Henning Kamp
e9a1a34366 Data is not information;
Information is not knowledge;
	Knowledge is not wisdom
			-- Gary Flake
2005-04-13 06:11:49 +00:00
Jens Schweikhardt
6f3997749c s/self-distruction/self-destruction 2005-04-10 10:53:26 +00:00
Poul-Henning Kamp
ebf3f2a194 He who receives ideas from me, receives instruction himself without
lessening mine; as he who lights his taper at mine receives light
without darkening me.
       -- Thomas Jefferson on patents on ideas.
2005-03-22 07:41:22 +00:00
Murray Stokely
7803a8a051 Typo.
PR:		conf/77178
Submitted by:	Andras Jako <jako.andras@eik.bme.hu>
MFC after:	1 week
2005-03-19 02:44:41 +00:00
Philip Paeps
f5ba17d43b These words, while not spoken about anything even slightly related, are very,
very applicable when waiting for world to compile *grin*

Impatience award to:	philip
2005-03-14 21:50:25 +00:00
Christian Brueffer
abe57788f7 Remove dublicate entries and correct apostrophe abuse.
Submitted by:	Christoph Mallon <christoph.mallon@gmx.de>
2005-03-13 13:20:07 +00:00
Yaroslav Tykhiy
f92907365d Add a story about confusing information theory with thermodynamics. 2005-03-07 06:05:14 +00:00
Poul-Henning Kamp
eabf308004 Another good Dijkstra quote. 2005-03-04 09:47:22 +00:00
Poul-Henning Kamp
ed4d64dbf7 Add missing quote. 2005-03-03 18:32:50 +00:00
Poul-Henning Kamp
52b9f7a5b1 Wisdom from 1972. 2005-03-03 18:07:23 +00:00
Yaroslav Tykhiy
53365f4b43 Give a better advice on how to convert DOS text to UNIX text.
The former tip used `col -bx', which would not only discard
CR's, but also expand TAB's and remove BS'en.  This effect is
not always wanted.

MFC after:	1 week
2005-02-28 17:05:00 +00:00
Yaroslav Tykhiy
02d5d57aba Add a neat remark on the popular belief that the universe is a safe
the man ought to break open and rob.
2005-02-26 12:49:03 +00:00
Ruslan Ermilov
423120f127 Fixed warnings and bump WARNS to 6. 2005-02-23 20:59:03 +00:00
Ruslan Ermilov
8b8984d523 Bump WARNS to 6. 2005-02-23 20:42:47 +00:00
Ruslan Ermilov
be2ff1d140 Make the on-disk format of .dat files produced by strfile(8)
architecture independent.  Besides the fixed-width types in
the header, the offsets are now stored as 64-bit off_t (also
in big endian format).

Tested on:	i386, amd64, sparc64, ia64
2005-02-17 18:06:37 +00:00
Ruslan Ermilov
36a142c455 Expand contractions. 2005-02-13 23:45:54 +00:00
Ruslan Ermilov
0227791b40 Expand *n't contractions. 2005-02-13 22:25:33 +00:00
Ruslan Ermilov
6324f7db72 Sync program's usage() with manpage's SYNOPSIS. 2005-02-09 18:22:15 +00:00
Ruslan Ermilov
f83442ac87 Keep only one style of Pittsburgh driver's tests.
Noticed by:	Pawel Worach
2005-02-08 10:42:22 +00:00
Ruslan Ermilov
0b4978b4ea An aggressive little script I used to trim out duplicate fortunes. 2005-02-07 21:15:16 +00:00
Ruslan Ermilov
6325a5d282 Trim more cookies, by playing with different hash functions,
e.g., by trimming all non-alphabet characters and whitespace,
converting to lowercase, and considering only first (or last)
N letters (maybe only consonants).  The fortune editor then
displays all fortunes that have the same hash, and allows to
remove one of them.  The rest is written to stdout.
2005-02-07 21:00:20 +00:00
Jens Schweikhardt
fb7b9592c7 s/worman/woman/ 2005-02-03 22:48:29 +00:00
Ruslan Ermilov
12e13d5f73 Ignore consonants, and remove more duplicates. 2005-02-03 10:54:07 +00:00
Ruslan Ermilov
70ffe5d36d Removed more duplicates (forgot to ignore underscore). 2005-02-03 09:44:30 +00:00
Ruslan Ermilov
f6f56f8b95 Keep the fortune above this.
Reviewed by:	sheldonh
2005-02-03 09:28:45 +00:00
Ruslan Ermilov
653dbafed5 Remove more duplicates. 2005-02-03 09:27:01 +00:00
Ruslan Ermilov
760542ba2e Ignore vowels, and remove more duplicates, mostly due to typos. 2005-02-03 09:13:02 +00:00
Dag-Erling Smørgrav
1f95f872ae Trim some obnoxious warlording. 2005-02-03 08:47:14 +00:00
Ruslan Ermilov
57bc1cfb15 Removed more duplicates, by ignoring "i", "you", "we",
"an", "is", "are", "will", "'ll", "is", "'s" to find
them.  More to follow...
2005-02-03 08:40:08 +00:00
Ruslan Ermilov
3aa9a20802 Merged fortunes with fortunes2.
Sort fortunes (except for the first entry).
2005-02-03 00:20:37 +00:00
Ruslan Ermilov
1269b8ed60 Fix bugs.
Due to one of the bugs (^C was the first character of each line
when sorting), the -b option of sort(1) didn't take any effect,
so stay bug-compatible, and remove the -b option.
2005-02-03 00:18:06 +00:00
Ruslan Ermilov
5896d2bb13 Removed 1695 fortunes also found in fortunes2. 2005-02-02 10:24:11 +00:00
Ruslan Ermilov
150ea19c8e Ignore case and all non-word characters, and remove more duplicates. 2005-02-01 16:34:38 +00:00
Pav Lucistnik
647273571c - Add few lines from my personal signature file
Suggested by:	Florent Thoumie
Approved by:	mux
2005-02-01 16:22:44 +00:00
Sean Kelly
6eb48b5f02 Remove another duplicate fortune. 2005-02-01 15:48:48 +00:00
Ruslan Ermilov
ec28d17dba Removed full duplicates that only differ in amount of whitespace
and line breaks.
2005-02-01 15:15:33 +00:00
Dag-Erling Smørgrav
8d347b59e1 Remove a duplicate. 2005-02-01 14:10:41 +00:00
Wilko Bulte
0447ccf320 s/principals/principles/
Fortune was duplicated, remove one copy.
2005-01-22 20:00:50 +00:00
Greg Lehey
9322e0f841 Add comment on current state of hardware documentation.
Submitted by: philip
2005-01-19 23:34:25 +00:00
Poul-Henning Kamp
55bf0e4475 Remove committer-specific entry. 2005-01-18 11:52:19 +00:00
Ruslan Ermilov
70c55092de Sort sections. 2005-01-18 08:57:18 +00:00
Poul-Henning Kamp
0763230837 Minor bit of advice. 2005-01-17 10:06:12 +00:00