Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include "asm_Lib/wla_lib.h"
- char sz[123] = "abc_SONY",
- *psz;
- int nLen = 3,
- arr[800];
- ////////////////////////////////////////////////////
- int main() //
- {
- printf("hash SHA-256 for \"abc_SONY\": \n");
- nLen = _wla_strlen(sz);
- psz = _sha_256(sz, nLen); // вычисляем ХЭШ строки
- printf("%s\n\n", psz);
- int a = 0;
- for(int i1= 0; i1< 17; i1++)
- {
- for(int i = 0; i < 12; i ++)
- {
- nLen = _wla_RND();
- printf("%5d ", nLen); arr[a++] = nLen;
- } printf("\n");
- }
- _wla_SortInsLess(arr, a); // Сортировка вставками
- printf("- - - - - - - - - - - After sorting:");
- printf(" - - - - - - - - - - - - - - - - -\n");
- a = 0;
- for(int i1= 0; i1< 17; i1++)
- {
- for(int i = 0; i < 12; i ++)
- {
- printf("%5d ", arr[a++]);
- } printf("\n");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement