As ftruncate is not availabe on all platforms, switch back to
authorBodo Möller <bodo@openssl.org>
Sun, 23 Jan 2000 19:58:03 +0000 (19:58 +0000)
committerBodo Möller <bodo@openssl.org>
Sun, 23 Jan 2000 19:58:03 +0000 (19:58 +0000)
commite84c2d267950e9f7c2a210edfee783be84dd83b4
tree1870614614517688720103ae37b93e447f620783
parentfabce04122b1e6a208577c06927b25595d5b5613
As ftruncate is not availabe on all platforms, switch back to
opening the output file with "wb" to truncate it except on VMS
(where the file now keeps its original length because it is opened
with "rb+" -- does VMS have ftruncate?)
crypto/rand/randfile.c