SecreC 2 language  2.8.0 (2023.09)
Language and standard library reference
Functions
privateRandomPermutation

Functions

template<domain D :shared3p >
D uint privateRandomPermutation (uint n)
 

Detailed Description

Generates a random private permutation.

Note
D - shared3p protection domain
Parameters
n- length of the permutation
Returns
a random permutation of length n

Function Documentation

◆ privateRandomPermutation()

D uint privateRandomPermutation ( uint  n)