Hi, I have not written the script yet. But the format is that, first a string "scrypt_test_setting post_settings[] ="to be written in to the file. then 640 bit random data will be written { {"Random data",10, 0, 0}, {0} };

The overall file that will be created will be look like as given below. scrypt_test_setting post_settings[] = { {"0000318f7e71441b141fe951b2b0c7dfc791d4646240fc2a2d1b80900020a24dc501ef1599fc48ed6cbac920af75575618e7b1e8eaf0b62a90d1942ea64d250357e9a09c063a47827c57b44e01000000","0000318f7e71441b141fe951b2b0c7dfc791d4646240fc2a2d1b80900020a24dc501ef1599fc48ed6cbac920af75575618e7b1e8eaf0b62a90d1942ea64d250357e9a09c063a47827c57b44e01000000",10, 0, 0}, {0} };

The "random data" you show is not a number and it's not 640 bits. It's 2 separate strings of 160 characters/bytes (2560 bits total).

Show me the algorithm you want to use to convert your 640 bit number to the 2 separate strings and I'll see what I can do to help you troubleshoot the perl code you will be writing to implement that algorithm.

It appears that you want a comma separated list of huge random numbers expressed as 160-character hex integers (over 192 decimal digits). Format is probably the least of your problems. You need an algorithm for generating these numbers. Some how, you will need to verify that it meets your requirement for randomness. Implementation in perl's bigint is probably straight forward. Good Luck, Bill

Hi, It is not 160 byte data. It is 80 byte random data which concatenated to form 160 byte data(i.e 640 bit data) . There is no algorithm for generation of data it can be any random data. My problem is how to generate this large random data and write to file in specified format.

We are still talking about HUGE numbers. Each string consists of the concatenation of two integers each in the range 0 through 16**80-1 (approx. 0 though 10**96). The numbers are expressed in hexadecimal. Each 'digit' is expressed as an ASCII character [0-9A-Z]. It is necessary to find or write a random number generator which will generate a series of big integers this large which meets the (yet to be stated) requirement for randomness.

It appears that formatting the numbers will be straight forward. Generating them will not be. Good Luck, Bill