[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: KShred compile troubles.
From: Waldo Bastian <bastian () kde ! org>
Date: 2000-05-30 22:48:11
[Download RAW message or body]
On Tue, 30 May 2000, David Faure wrote:
> On Mon, May 29, 2000 at 03:56:28PM +0200, Alexander Feigl wrote:
> > Hi!
> >
> > I cannot compile current KShred.cpp because random() and srandom() don't
> > get included.
> >
> > srandom() and random are only included when _XOPEN_SOURCE_EXTENDED or
> > _SVID_SOURCE are definded. I'm using glibc 2.1. (Linux).
> >
> > Is there any reason why we use srandom() and random()? srand() and rand()
> > would be available without #defines
>
> Hmm, I'm a bit lost in the random/rand/KRandomSequence situation.
> Waldo ? Should KShred use the latter ? Otherwise, what's the
> file to include ?
It needs cryptographicly strong random numbers, so I would use
KApplication::random().
Cheers,
Waldo
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic