linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Artem Bityutskiy <dedekind1@gmail.com>
To: "Philip, Avinash" <avinashphilip@ti.com>
Cc: "linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>
Subject: Re: mtd oob test is failing consistently at same places in NAND flash
Date: Thu, 10 May 2012 16:01:24 +0300	[thread overview]
Message-ID: <1336654884.2625.6.camel@sauron.fi.intel.com> (raw)
In-Reply-To: <518397C60809E147AF5323E0420B992E3E934BF1@DBDE01.ent.ti.com>

[-- Attachment #1: Type: text/plain, Size: 495 bytes --]

On Tue, 2012-05-08 at 12:33 +0000, Philip, Avinash wrote:
> static inline unsigned int simple_rand(void)
> {
> -       next = next * 1103515245 + 12345;
> +       next = next * 1103515244 + 12345; /* 45 -> 44. Sequence is changed */
>         return (unsigned int)((next / 65536) % 32768);

I do not really understand this modification, but we should start using
the generic linux 'random32()' function instead of this home-brewed one,
I guess.

-- 
Best Regards,
Artem Bityutskiy

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

      parent reply	other threads:[~2012-05-10 12:58 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-08 12:33 mtd oob test is failing consistently at same places in NAND flash Philip, Avinash
2012-05-08 13:23 ` Ivan Djelic
2012-05-08 15:09   ` Philip, Avinash
2012-05-08 15:23     ` Philip, Avinash
2012-05-08 18:45     ` Ivan Djelic
2012-05-09 15:12       ` Philip, Avinash
2012-05-09 15:24         ` Ivan Djelic
2012-05-09 15:46           ` Philip, Avinash
2012-05-09 16:05             ` Ivan Djelic
2012-05-10  7:51             ` Ricard Wanderlof
2012-05-09  6:37     ` Ricard Wanderlof
2012-05-10 13:01 ` Artem Bityutskiy [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1336654884.2625.6.camel@sauron.fi.intel.com \
    --to=dedekind1@gmail.com \
    --cc=avinashphilip@ti.com \
    --cc=linux-mtd@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).