Groups | Search | Server Info | Login | Register
Groups > comp.os.os2.programmer.porting > #118
| From | "Mentore Siesto" <mentoreshoryu@fattimiei.zx> |
|---|---|
| Organization | eComStation Developer Team |
| Message-ID | <0KhBVN5juOdd-pn2-zuHodgfNGl5U@neo_iii> (permalink) |
| Newsgroups | comp.os.os2.programmer.porting |
| Subject | Re: SOLVED!: Problem: error in iconv_open |
| References | (3 earlier) <isjoji$e5l$1@speranza.aioe.org> <0KhBVN5juOdd-pn2-uewIjdkqIdes@neo_iii> <itlf7h$k2$1@speranza.aioe.org> <slrnj04p8g.99c.nospam-abuse@chorin.math.berkeley.edu> <0KhBVN5juOdd-pn2-etRSoGxQzz6z@neo_iii> |
| Date | 2011-07-10 18:24 +0000 |
Il giorno Sat, 9 Jul 2011 10:37:09 UTC, "Mentore Siesto" <mentoreshoryu@fattimiei.zx> ha scritto: > Il giorno Wed, 22 Jun 2011 21:56:32 UTC, Ilya Zakharevich > <nospam-abuse@ilyaz.org> ha scritto: > > > On 2011-06-19, Dave Yeo <dave.r.yeo@gmail.com> wrote: > > > Probably good enough unless your communicating nuclear secrets are some > > > such. There's way more low hanging fruit then cracking the OS/2 random > > > number generator to predict it. > > > > ??? Did you have your coffee? There is no "OS/2 random > > number generator"; it is CRTL's random number generator. There are > > about 3 or 4 of them. There is no need to "crack them"; unless > > seed()ed from urandom, they would return a fully predictable sequence > > of numbers (provided the seeding happens from course-granularity > > time, and PID). > > > > Ilya > > News from past days... > > I tried with rand () and it seemed to work fine, but now the program > seems to corrupt files! > > Testing on a simple text file worked fine, but as I try it with a > binary file, my port corrupts it adding spare bytes. > > It could be the way I'm using the random generator... I will make some > other try. Will keep you informed! > > Mentore It was not the random number generator. I built another release using another generator, which uses a specific algorithm, and noticed the very same problem. So I checked out the fopen () calls, as the program worked fine with text file, and guess what? Yes, the original source opens files without the "binary" flag. adding "b" to all the fopen () calls solved the problem. Now it's just time to clean up a bit and a new OS/2 program is ready :) Mentore
Back to comp.os.os2.programmer.porting | Previous | Next — Previous in thread | Next in thread | Find similar
Problem: error in iconv_open "Mentore Siesto" <mentoreshoryu@fattimiei.zx> - 2011-06-05 20:22 +0000
Re: Problem: error in iconv_open Dave Yeo <dave.r.yeo@gmail.com> - 2011-06-05 15:16 -0700
Re: Problem: error in iconv_open KO Myung-Hun <komh@chollian.net> - 2011-06-06 22:50 +0900
Re: Problem: error in iconv_open "Mentore Siesto" <mentoreshoryu@fattimiei.zx> - 2011-06-06 20:40 +0000
Re: Problem: error in iconv_open "Mentore Siesto" <mentoreshoryu@fattimiei.zx> - 2011-06-06 20:45 +0000
Re: Problem: error in iconv_open Dave Yeo <dave.r.yeo@gmail.com> - 2011-06-06 16:41 -0700
Re: Problem: error in iconv_open "Mentore Siesto" <mentoreshoryu@fattimiei.zx> - 2011-06-19 16:40 +0000
Re: Problem: error in iconv_open Dave Yeo <dave.r.yeo@gmail.com> - 2011-06-19 11:30 -0700
Re: Problem: error in iconv_open Ilya Zakharevich <nospam-abuse@ilyaz.org> - 2011-06-22 21:56 +0000
Re: Problem: error in iconv_open "Mentore Siesto" <mentoreshoryu@fattimiei.zx> - 2011-07-09 10:37 +0000
Re: SOLVED!: Problem: error in iconv_open "Mentore Siesto" <mentoreshoryu@fattimiei.zx> - 2011-07-10 18:24 +0000
Re: SOLVED!: Problem: error in iconv_open "Lars Erdmann" <lars.erdmann@arcor.de> - 2011-07-10 20:41 +0200
Re: SOLVED!: Problem: error in iconv_open "Mentore Siesto" <mentoreshoryu@fattimiei.zx> - 2011-07-10 22:33 +0000
Re: SOLVED!: Problem: error in iconv_open vsvidya7@gmail.com - 2013-01-21 03:00 -0800
Re: SOLVED!: Problem: error in iconv_open Dave Yeo <dave.r.yeo@gmail.com> - 2011-07-10 12:07 -0700
Re: Problem: error in iconv_open Ilya Zakharevich <nospam-abuse@ilyaz.org> - 2011-06-08 00:45 +0000
Re: Problem: error in iconv_open "Mentore Siesto" <mentoreshoryu@fattimiei.zx> - 2011-06-08 20:49 +0000
Re: Problem: error in iconv_open piesse <piesse@despammed.com> - 2011-06-09 22:28 +0200
Re: Problem: error in iconv_open Mentore <mentore.siesto@libero.it> - 2011-06-13 03:33 -0700
csiph-web