Uploaded image for project: 'C++ Standard Library'
  1. C++ Standard Library
  2. STDCXX-789

random_shuffle.cpp produces unexpected output

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • None
    • Examples
    • None
    • all

    • Incorrect Behavior

    Description

      The example program random_shuffle.cpp produces unexpected output in recent builds. Running it interactively shows the following diff:

      $ ./random_shuffle >random_shuffle.out && diff -C3 random_shuffle.out >
      *** random_shuffle.out  Thu Mar 20 12:53:37 2008
      --- /nfs/homes/sebor/stdcxx/examples/manual/out/random_shuffle.out      Tue Feb 20 16:34:53 2007
      ***************
      *** 1,5 ****
        Elements before random_shuffle: 
      !      1 2 3 4 5 6 7 8 9 1e+01 
        
        Elements after random_shuffle: 
      !      9 8 7 6 2 3 1 4 5 1e+01 
      --- 1,5 ----
        Elements before random_shuffle: 
      !      1 2 3 4 5 6 7 8 9 10 
        
        Elements after random_shuffle: 
      !      9 8 7 6 2 3 1 4 5 10 
      

      Attachments

        Activity

          People

            sebor Martin Sebor
            sebor Martin Sebor
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h
                1h