octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #36688] tempname does not return a sufficientl


From: anonymous
Subject: [Octave-bug-tracker] [bug #36688] tempname does not return a sufficiently unique file name on windows
Date: Tue, 19 Jun 2012 22:44:01 +0000
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:10.0.3) Gecko/20100101 Firefox/10.0.3

URL:
  <http://savannah.gnu.org/bugs/?36688>

                 Summary: tempname does not return a sufficiently unique file
name on windows
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Tue 19 Jun 2012 22:44:00 UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Feature Request
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.6.1
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

The function tempname on the windows build 3.6.1 returns file names like the
following:

oct-1
oct-2

etc. with the number increasing on each subsequent call. This is ok, but if we
are running two or more instances of octave they each begin counting from 1.
This means there is a high risk of attempting to access the same files
(especially if you expand this to many octave instances being launched and
quit at random times to perform a parallel computing task).

It would be nice if tempname used the cpu time or something like this to
produce a more randomised file name. This would also be more compatible with
Matlab.

On linux (Scientific Linux 6.2) using Octave 3.2.4 the file name is more
randomised, I can't test newer octave version on linux at the moment to see if
this is still the case.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?36688>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]