https://bugzilla.novell.com/show_bug.cgi?id=341034

           Summary: [2.0, PATCH] Path.GetRandomFileName() returns ugly
                    filenames
           Product: Mono: Class Libraries
           Version: 1.2
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: CORLIB
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [EMAIL PROTECTED]
          Found By: ---


Test case:
==========
using System;
using System.IO;

class Test {
  static void Main() {
    for(int i = 0; i < 5; i++)
     Console.WriteLine(Path.GetRandomFileName());
  }
}


Output Mono:
============
[EMAIL PROTECTED] ~]$ mono randtest.exe
ö¹´Ãí¥p.ÿ”_
‰¾h+‹Dk4.Íø
4Ɏ™ö`]ë.3Dð
EµcX%E¶.9H
̓”÷·}†.Lö

Output MS.NET:
==============
j23rxtsi.e2b
i5xfnxvo.5lc
2x0i3hlz.rvw
t3bytwjk.keu
1zcgkvwh.lm4


While technically correct, Mono's random filenames are ugly and non-portable
(and the dot at position 8 makes them look like a cruel joke).

The attached patch fixes this.

May I commit?


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to