Skip to content

Commit

Permalink
Merge pull request #201 from Typee-Language/#150-Modify-Correct-Parse…
Browse files Browse the repository at this point in the history
…r-Code

#143-Random library validation
  • Loading branch information
PhHays committed Mar 14, 2019
2 parents 8606048 + f0f79bf commit 4857608
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Libs/Random/rand63.ty
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ from .Bases.base_lcg import BaseLcg;
from SysTime import systime;

//=============================================================================
class Rand32 :
class Rand63 :
BaseLcg<uint64, 9_219_741_426_499_971_445, 1, 0x8000_0000_0000_0000>
as Lcg63
/**
Expand Down Expand Up @@ -113,8 +113,8 @@ should definitively pass.
*/
{
const uint64 t = const uint64( systime.systime() * 1000.0 );
me.set_state( ((t & 0xff000000) >> 8) +
((t & 0x00ff0000) >> 24) +
me.set_state( ((t & 0xff000000) >> 24) +
((t & 0x00ff0000) >> 8) +
((t & 0x0000ff00) << 40) +
((t & 0x000000ff) << 63) );
}
Expand Down

0 comments on commit 4857608

Please sign in to comment.