mardi 1 juin 2021

Does Python random.random() and Javascript math.random() generate the same numbers starting from the same Seed? [closed]

I am trying to generate a reproducible partition key for a CosmosDB table of Customers.

The key should be possible to be replicable from external systems: I am worried that if I generate this value using one of the libraries above cited, systems which uses other languages would not be able to replicate the value.

Answers gladly accepted for this question are also:

  1. Comparisons of how different libraries of different languages control the algorithm of a Pseudo-Random Number Generator

  2. What implicate to use an GUID (key of the table) as partition key in CosmosDB




Aucun commentaire:

Enregistrer un commentaire