/AliOS-Things-master/components/py_engine/tests/extmod/ |
A D | urandom_seed_default.py | 13 random.seed() 25 random.seed() 27 random.seed() 29 random.seed(None)
|
A D | urandom_basic.py | 16 random.seed(0) 20 random.seed(1) 22 random.seed(1)
|
/AliOS-Things-master/components/SDL2/test/ |
A D | testqsort.c | 55 Uint64 seed = 0; in main() local 57 success = SDL_sscanf(argv[1] + 2, "%llx", &seed); in main() 59 success = SDL_sscanf(argv[1], "%llu", &seed); in main() 64 if (seed <= ((Uint64)0xffffffff)) { in main() 68 SDLTest_RandomInit(&rndctx, (unsigned int)(seed >> 32), (unsigned int)(seed & 0xffffffff)); in main()
|
A D | testsprite2.c | 285 Uint64 seed; in main() local 380 seed = (Uint64)iterations; in main() 383 seed = (Uint64)time(NULL); in main() 385 SDLTest_FuzzerInit(seed); in main()
|
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/swlib/string/ |
A D | rand.c | 47 HAL_ROM_BSS_SECTION static unsigned long seed = 0xDEADB00B; in Rand_Arc4() local 49 seed = ((seed & 0x007F00FF) << 7) ^ in Rand_Arc4() 50 ((seed & 0x0F80FF00) >> 8) ^ // be sure to stir those low bits in Rand_Arc4() 53 return (int)seed; in Rand_Arc4()
|
/AliOS-Things-master/components/osal_aos/ |
A D | common.c | 44 void aos_srand(uint32_t seed) in aos_srand() argument 57 seed_val += seed; in aos_srand() 66 srand(seed); in aos_srand()
|
/AliOS-Things-master/hardware/chip/haas1000/drivers/services/ble_stack/common/api/ |
A D | co_math.h | 23 extern void srand (unsigned int seed); 119 __STATIC __INLINE void co_random_init(uint32_t seed) in co_random_init() argument 121 srand(seed); in co_random_init()
|
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/bluetooth/realtek/sdk/board/amebad/src/ |
A D | platform_utils.c | 7 uint32_t seed = * ((volatile uint32_t *) 0xe000e018) ; //system tick current value in platform_random() local 8 srand(seed); in platform_random()
|
/AliOS-Things-master/components/mbedtls/library/ |
A D | ctr_drbg.c | 382 unsigned char seed[MBEDTLS_CTR_DRBG_MAX_SEED_INPUT]; in mbedtls_ctr_drbg_reseed() local 390 memset( seed, 0, MBEDTLS_CTR_DRBG_MAX_SEED_INPUT ); in mbedtls_ctr_drbg_reseed() 395 if( 0 != ctx->f_entropy( ctx->p_entropy, seed, in mbedtls_ctr_drbg_reseed() 408 memcpy( seed + seedlen, additional, len ); in mbedtls_ctr_drbg_reseed() 415 if( ( ret = block_cipher_df( seed, seed, seedlen ) ) != 0 ) in mbedtls_ctr_drbg_reseed() 421 if( ( ret = ctr_drbg_update_internal( ctx, seed ) ) != 0 ) in mbedtls_ctr_drbg_reseed() 426 mbedtls_platform_zeroize( seed, sizeof( seed ) ); in mbedtls_ctr_drbg_reseed()
|
A D | hmac_drbg.c | 157 unsigned char seed[MBEDTLS_HMAC_DRBG_MAX_SEED_INPUT]; in mbedtls_hmac_drbg_reseed() local 168 memset( seed, 0, MBEDTLS_HMAC_DRBG_MAX_SEED_INPUT ); in mbedtls_hmac_drbg_reseed() 172 seed, ctx->entropy_len ) ) != 0 ) in mbedtls_hmac_drbg_reseed() 180 memcpy( seed + seedlen, additional, len ); in mbedtls_hmac_drbg_reseed() 185 if( ( ret = mbedtls_hmac_drbg_update_ret( ctx, seed, seedlen ) ) != 0 ) in mbedtls_hmac_drbg_reseed() 193 mbedtls_platform_zeroize( seed, seedlen ); in mbedtls_hmac_drbg_reseed()
|
/AliOS-Things-master/components/ble_host/bt_crypto/ |
A D | bt_crypto.c | 39 u8_t seed[32]; in prng_reseed() local 43 for (i = 0; i < (sizeof(seed) / 8); i++) { in prng_reseed() 54 memcpy(&seed[i * 8], rp->rand, 8); in prng_reseed() 58 hci_api_le_rand(&seed[i * 8]); in prng_reseed() 64 ret = tc_hmac_prng_reseed(h, seed, sizeof(seed), (u8_t *)&extra, in prng_reseed()
|
/AliOS-Things-master/components/ble_host/bt_crypto/tinycrypt/source/ |
A D | hmac_prng.c | 139 const uint8_t *seed, in tc_hmac_prng_reseed() argument 147 seed == (const uint8_t *) 0 || in tc_hmac_prng_reseed() 163 update(prng, seed, seedlen); in tc_hmac_prng_reseed() 168 update(prng, seed, seedlen); in tc_hmac_prng_reseed()
|
/AliOS-Things-master/components/freetype/src/psaux/ |
A D | t1decode.c | 374 FT_Fixed seed; in t1_decoder_parse_charstrings() local 384 seed = (FT_Fixed)( ( (FT_PtrDist)(char*)&seed ^ in t1_decoder_parse_charstrings() 388 seed = ( seed ^ ( seed >> 10 ) ^ ( seed >> 20 ) ) & 0xFFFFL; in t1_decoder_parse_charstrings() 389 if ( seed == 0 ) in t1_decoder_parse_charstrings() 390 seed = 0x7384; in t1_decoder_parse_charstrings() 1012 Rand = seed; in t1_decoder_parse_charstrings() 1018 seed = FT_MulFix( seed, 0x10000L - seed ); in t1_decoder_parse_charstrings() 1019 if ( seed == 0 ) in t1_decoder_parse_charstrings() 1020 seed += 0x2873; in t1_decoder_parse_charstrings()
|
A D | psconv.c | 553 FT_UShort* seed ) in PS_Conv_EexecDecode() argument 557 FT_UInt s = *seed; in PS_Conv_EexecDecode() 581 *seed = (FT_UShort)s; in PS_Conv_EexecDecode() 594 *seed = s; in PS_Conv_EexecDecode()
|
A D | psconv.h | 63 FT_UShort* seed );
|
/AliOS-Things-master/components/py_engine/engine/extmod/ |
A D | modurandom.c | 104 mp_uint_t seed; in mod_urandom_seed() local 107 seed = MICROPY_PY_URANDOM_SEED_INIT_FUNC; in mod_urandom_seed() 112 seed = mp_obj_get_int_truncated(args[0]); in mod_urandom_seed() 114 yasmarang_pad = seed; in mod_urandom_seed()
|
/AliOS-Things-master/components/SDL2/src/test/ |
A D | SDL_test_harness.c | 56 char *seed = NULL; in SDLTest_GenerateRunSeed() local 67 seed = (char *)SDL_malloc((length + 1) * sizeof(char)); in SDLTest_GenerateRunSeed() 68 if (seed == NULL) { in SDLTest_GenerateRunSeed() 82 seed[counter] = ch; in SDLTest_GenerateRunSeed() 84 seed[length] = '\0'; in SDLTest_GenerateRunSeed() 86 return seed; in SDLTest_GenerateRunSeed()
|
/AliOS-Things-master/components/mbedtls/programs/test/ |
A D | udp_proxy.c | 167 unsigned int seed; /* seed for "random" events */ member 309 opt.seed = atoi( q ); in get_options() 310 if( opt.seed == 0 ) in get_options() 758 if( opt.seed == 0 ) in main() 760 opt.seed = (unsigned int) time( NULL ); in main() 761 mbedtls_printf( " . Pseudo-random seed: %u\n", opt.seed ); in main() 764 srand( opt.seed ); in main()
|
/AliOS-Things-master/solutions/lora_p2p_demo/ |
A D | sx126x.c | 141 void SX126xSetCrcSeed( uint16_t seed ) in SX126xSetCrcSeed() argument 145 buf[0] = ( uint8_t )( ( seed >> 8 ) & 0xFF ); in SX126xSetCrcSeed() 146 buf[1] = ( uint8_t )( seed & 0xFF ); in SX126xSetCrcSeed() 177 void SX126xSetWhiteningSeed( uint16_t seed ) in SX126xSetWhiteningSeed() argument 185 regValue = ( ( seed >> 8 ) & 0x01 ) | regValue; in SX126xSetWhiteningSeed() 187 SX126xWriteRegister( REG_LR_WHITSEEDBASEADDR_LSB, ( uint8_t )seed ); in SX126xSetWhiteningSeed()
|
/AliOS-Things-master/hardware/chip/rtl872xd/aos/ |
A D | aos_osdep.c | 523 static unsigned long seed = 0xDEADB00B; in _aos_arc4random() local 527 seed = random_seed; in _aos_arc4random() 532 seed = ((seed & 0x007F00FF) << 7) ^ in _aos_arc4random() 533 ((seed & 0x0F80FF00) >> 8) ^ // be sure to stir those low bits in _aos_arc4random() 535 return (int)seed; in _aos_arc4random()
|
/AliOS-Things-master/components/ble_host/bt_crypto/tinycrypt/include/tinycrypt/ |
A D | hmac_prng.h | 139 int tc_hmac_prng_reseed(TCHmacPrng_t prng, const uint8_t *seed,
|
/AliOS-Things-master/components/freetype/src/cff/ |
A D | cffgload.c | 912 FT_Fixed seed; in cff_decoder_parse_charstrings() local 925 seed = (FT_Fixed)( ( (FT_PtrDist)(char*)&seed ^ in cff_decoder_parse_charstrings() 929 seed = ( seed ^ ( seed >> 10 ) ^ ( seed >> 20 ) ) & 0xFFFFL; in cff_decoder_parse_charstrings() 930 if ( seed == 0 ) in cff_decoder_parse_charstrings() 931 seed = 0x7384; in cff_decoder_parse_charstrings() 2062 Rand = seed; in cff_decoder_parse_charstrings() 2067 seed = FT_MulFix( seed, 0x10000L - seed ); in cff_decoder_parse_charstrings() 2068 if ( seed == 0 ) in cff_decoder_parse_charstrings() 2069 seed += 0x2873; in cff_decoder_parse_charstrings()
|
/AliOS-Things-master/components/py_engine/tests/multi_bluetooth/ |
A D | ble_l2cap.py | 126 random.seed(_RANDOM_SEED) 154 random.seed(_RANDOM_SEED)
|
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/wireless/bt_host/ |
A D | bt_gatts_adapter.c | 41 … uint8_t seed[] = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'}; in get_16bits_hex_from_string() local 53 for (jj=0; jj<sizeof(seed); jj++) { in get_16bits_hex_from_string() 54 if (seed[jj] == tmp) { in get_16bits_hex_from_string()
|
/AliOS-Things-master/components/linkkit/include/linkkit/wrappers/ |
A D | wrappers_os.h | 18 void HAL_Srandom(uint32_t seed);
|