Announcement

Collapse

Forum Guidelines

This forum is for finished source code that is working properly. If you have questions about this or any other source code, please post it in one of the Discussion Forums, not here.
See more
See less

A toy for Rod's macro collection

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    A toy for Rod's macro collection

    A macro for seeding random generators.

    Code:
        MACRO FUNCTION randomseed
          MACROTEMP tvar
          LOCAL tvar as DWORD
          ! rdtsc               ' get a fast changing number from the processor
          ! bswap eax           ' reverse byte order to get fast changing end
          ! mov tvar, eax
        END MACRO = tvar
    hutch at movsd dot com
    The MASM Forum - SLL Modules and PB Libraries

    http://www.masm32.com/board/index.php?board=69.0
Working...
X
😀
🥰
🤢
😎
😡
👍
👎