[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#248352: more data on the seed48 problem



On Wed, May 12, 2004 at 03:18:44PM +0200, Tomas Pospisek wrote:
> Package: libc6
> Version: 2.3.2.ds1-12
> Severity: normal
> Followup-For: Bug #248352
> 
> Here are three more datapoints for the seed48 problem.
> 
> ----------- system 1 ---------------
> $ cat kak.c
> #include <stdlib.h>
> 
> unsigned short seed[3] = {0x7d1b, 0xa934, 0xbf10};
> 
> int main(int argc, char** argv)
> {
>     seed48(seed);
> }

The exit value of that program is undefined, as gcc -Wall should have
hinted. Use either 'return seed48(seed);' or 'seed48(seed); return 0;'.

-- 
Colin Watson                                  [cjwatson@flatline.org.uk]



Reply to: