FSPXI:GenerateRandomBytes

From 3dbrew
Revision as of 17:57, 6 June 2022 by TimmSkiller (talk | contribs) (Created page with "=Request= {| class="wikitable" border="1" |- ! Index Word ! Description |- | 0 | Header code [0x004800C2] |- | 1 | Buffer size |- | 2 | (Buffer size << 8) <nowiki>|</nowiki>...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Request[edit]

Index Word Description
0 Header code [0x004800C2]
1 Buffer size
2 (Buffer size << 8) | 4
3 Buffer pointer

Response[edit]

Index Word Description
0 Header code
1 Result code

Description[edit]

This command generates random bytes and stores them in the specified output pointer with the specified size.

Used in FS11 to generate the 8-byte unique identifier in DIFF headers.