next up previous
Next: 15.9.2 Seed file1d. Up: 15.9 Loading a seed. Previous: 15.9 Loading a seed.

15.9.1 Seed file encoding and loading conventions.

The binary file defining the seed is encoded as follows:

Bytes 0,1 = n, bytes 2, 3 = i, j for 2d (for 1d these bytes are set to null), the rest of the seed is set as bits from 0 to n-1. Excess bits in the last byte are set to 0.

The following describes the consequences if the network size in the file to be loaded differs from the actual network size, or if its geometry conflicts. If a 2d file is loaded to a 1d array, its 2d characteristics will be ignored, If a 1d file is loaded to a 2d array, if the file is bigger, as many bits as will fit are loaded.