You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@stdcxx.apache.org by "Martin Sebor (JIRA)" <ji...@apache.org> on 2008/03/20 18:21:25 UTC
[jira] Resolved: (STDCXX-789) random_shuffle.cpp produces
unexpected output
[ https://issues.apache.org/jira/browse/STDCXX-789?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Sebor resolved STDCXX-789.
---------------------------------
Resolution: Fixed
Patch committed in [r639361|http://svn.apache.org/viewvc?rev=639361&view=rev].
Will close after integrating into 4.2.x in the next bulk merge.
> random_shuffle.cpp produces unexpected output
> ---------------------------------------------
>
> Key: STDCXX-789
> URL: https://issues.apache.org/jira/browse/STDCXX-789
> Project: C++ Standard Library
> Issue Type: Bug
> Components: Examples
> Affects Versions: trunk
> Environment: all
> Reporter: Martin Sebor
> Assignee: Martin Sebor
> Priority: Minor
> Fix For: trunk
>
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> The example program [random_shuffle.cpp|http://svn.apache.org/repos/asf/stdcxx/trunk/examples/manual/random_shuffle.cpp] produces unexpected output in recent builds. Running it interactively shows the following diff:
> {noformat}
> $ ./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
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.