File: random_prime.h

package info (click to toggle)
libmath-prime-util-perl 0.73-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 2,800 kB
  • sloc: perl: 24,676; ansic: 11,471; python: 24; makefile: 18
file content (15 lines) | stat: -rw-r--r-- 380 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef MPU_RANDOM_PRIME_H
#define MPU_RANDOM_PRIME_H

#include "ptypes.h"

extern UV random_nbit_prime(void* ctx, UV b);
extern UV random_ndigit_prime(void* ctx, UV d);
extern UV random_prime(void* ctx, UV lo, UV hi);

extern int is_mr_random(void* ctx, UV n, UV k);

extern UV random_semiprime(void* ctx, UV b);
extern UV random_unrestricted_semiprime(void* ctx, UV b);

#endif