Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RTeX::Tempdir#uuid breaks if uuidgen not present on OS #1

Open
jacott opened this issue Feb 25, 2010 · 2 comments
Open

RTeX::Tempdir#uuid breaks if uuidgen not present on OS #1

jacott opened this issue Feb 25, 2010 · 2 comments

Comments

@jacott
Copy link

jacott commented Feb 25, 2010

The line (result = uuidgen.strip rescue nil).empty? does not work since empty? is not a method in Nil class. You could use nil? or blank? but why even call uuidgen; it only needs to be unique on the current server therefore using "#{Time.now.to_f}-#{Thread.current.hash}-#{hash}" is more than adequate.

Note that I propose Time.now.to_f rather than to_i

Thanks

@matzke
Copy link

matzke commented Jan 6, 2011

+1

@LoicRegnault
Copy link

Hello everyone,
I'am having the same problem, do anyone have any idea how to fix this on windows XP ?

Thanks
Harks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants