You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before filing a bug, please check whether it has been fixed since the
latest release. Search the issue tracker and check that you're running the
latest version of Go:
Run "go version" and compare against
http://golang.org/doc/devel/release.html If a newer version of Go exists,
install it and retry what you did to reproduce the problem.
Thanks.
What does 'go version' print?
go version go1.3.3 linux/amd64
What steps reproduce the problem?
If possible, include a link to a program on play.golang.org.
http://play.golang.org/p/rzrTSXGysT
1. Create 11 files with ioutil.TempFile
2. Without deleting the files, re-run the program with the same PID and system clock.
This is easiest to do by simply running it on the playground.
What happened?
TempFile loops 10000 times and then returns:
open test054003078: File exists
What should have happened instead?
A twelfth file should have been created.
Please provide any additional information below.
The text was updated successfully, but these errors were encountered:
I do not think that it should be fixed in playground as well. Right now user can create thousands of temp files without any problem: https://play.golang.org/p/eoPJcGjaeZt
andybons
changed the title
playground: TempFile reseeds every time after the 10th
x/playground: TempFile reseeds every time after the 10th
Mar 13, 2018
Agreed. Since the sandbox cleans up any files created (so there's no risk of data leakage), this problem is extremely specific to the playground and can be easily worked around.
by ben.lubar:
The text was updated successfully, but these errors were encountered: