diff options
author | Werner Koch <wk@gnupg.org> | 1998-02-24 19:50:46 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 1998-02-24 19:50:46 +0100 |
commit | 5a05af2bca319adc9a915ff4466f04c3ef05142a (patch) | |
tree | 24292fd49662c09acbe4d6eae321888cbb175585 /cipher/random.c | |
parent | rel 0.2.7 mit kleines Korrekturen (diff) | |
download | gnupg2-5a05af2bca319adc9a915ff4466f04c3ef05142a.tar.xz gnupg2-5a05af2bca319adc9a915ff4466f04c3ef05142a.zip |
Renamed to GNUPGV-0-2-8
Diffstat (limited to 'cipher/random.c')
-rw-r--r-- | cipher/random.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/cipher/random.c b/cipher/random.c index 26777aa91..635c40a40 100644 --- a/cipher/random.c +++ b/cipher/random.c @@ -1,14 +1,14 @@ /* random.c - random number generator - * Copyright (c) 1997 by Werner Koch (dd9jn) + * Copyright (C) 1998 Free Software Foundation, Inc. * - * This file is part of G10. + * This file is part of GNUPG. * - * G10 is free software; you can redistribute it and/or modify + * GNUPG is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * - * G10 is distributed in the hope that it will be useful, + * GNUPG is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. @@ -53,11 +53,10 @@ quick_random_gen( int onoff ) int last = quick_test; if( onoff != -1 ) quick_test = onoff; - #ifdef HAVE_DEV_RANDOM - return last; - #else - return 1; /* insecure RNG */ + #ifndef HAVE_DEV_RANDOM + last = 1; /* insecure RNG */ #endif + return last; } |